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