(root, expirationTime)
| 14025 | } |
| 14026 | |
| 14027 | function flushRoot(root, expirationTime) { |
| 14028 | !!isRendering ? invariant(false, 'work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method.') : void 0; |
| 14029 | // Perform work on root as if the given expiration time is the current time. |
| 14030 | // This has the effect of synchronously flushing all work up to and |
| 14031 | // including the given time. |
| 14032 | performWorkOnRoot(root, expirationTime, false); |
| 14033 | finishRendering(); |
| 14034 | } |
| 14035 | |
| 14036 | function finishRendering() { |
| 14037 | nestedUpdateCount = 0; |
nothing calls this directly
no test coverage detected