(root, expirationTime)
| 13809 | } |
| 13810 | |
| 13811 | function flushRoot(root, expirationTime) { |
| 13812 | !!isRendering ? invariant(false, 'work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method.') : void 0; |
| 13813 | // Perform work on root as if the given expiration time is the current time. |
| 13814 | // This has the effect of synchronously flushing all work up to and |
| 13815 | // including the given time. |
| 13816 | performWorkOnRoot(root, expirationTime, false); |
| 13817 | finishRendering(); |
| 13818 | } |
| 13819 | |
| 13820 | function finishRendering() { |
| 13821 | nestedUpdateCount = 0; |
nothing calls this directly
no test coverage detected