()
| 13016 | } |
| 13017 | |
| 13018 | function finishRendering() { |
| 13019 | nestedUpdateCount = 0; |
| 13020 | |
| 13021 | if (completedBatches !== null) { |
| 13022 | var batches = completedBatches; |
| 13023 | completedBatches = null; |
| 13024 | for (var i = 0; i < batches.length; i++) { |
| 13025 | var batch = batches[i]; |
| 13026 | try { |
| 13027 | batch._onComplete(); |
| 13028 | } catch (error) { |
| 13029 | if (!hasUnhandledError) { |
| 13030 | hasUnhandledError = true; |
| 13031 | unhandledError = error; |
| 13032 | } |
| 13033 | } |
| 13034 | } |
| 13035 | } |
| 13036 | |
| 13037 | if (hasUnhandledError) { |
| 13038 | var error = unhandledError; |
| 13039 | unhandledError = null; |
| 13040 | hasUnhandledError = false; |
| 13041 | throw error; |
| 13042 | } |
| 13043 | } |
| 13044 | |
| 13045 | function performWorkOnRoot(root, expirationTime, isAsync) { |
| 13046 | !!isRendering ? invariant(false, 'performWorkOnRoot was called recursively. This error is likely caused by a bug in React. Please file an issue.') : void 0; |
no outgoing calls
no test coverage detected