(root, expirationTime)
| 13098 | } |
| 13099 | |
| 13100 | function flushRoot(root, expirationTime) { |
| 13101 | !!isRendering ? invariant(false, 'work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method.') : void 0; |
| 13102 | // Perform work on root as if the given expiration time is the current time. |
| 13103 | // This has the effect of synchronously flushing all work up to and |
| 13104 | // including the given time. |
| 13105 | performWorkOnRoot(root, expirationTime, false); |
| 13106 | finishRendering(); |
| 13107 | } |
| 13108 | |
| 13109 | function finishRendering() { |
| 13110 | nestedUpdateCount = 0; |
nothing calls this directly
no test coverage detected