(root, expirationTime)
| 13768 | } |
| 13769 | |
| 13770 | function flushRoot(root, expirationTime) { |
| 13771 | !!isRendering ? invariant(false, 'work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method.') : void 0; |
| 13772 | // Perform work on root as if the given expiration time is the current time. |
| 13773 | // This has the effect of synchronously flushing all work up to and |
| 13774 | // including the given time. |
| 13775 | performWorkOnRoot(root, expirationTime, false); |
| 13776 | finishRendering(); |
| 13777 | } |
| 13778 | |
| 13779 | function finishRendering() { |
| 13780 | nestedUpdateCount = 0; |
nothing calls this directly
no test coverage detected