(root, expirationTime)
| 13135 | } |
| 13136 | |
| 13137 | function flushRoot(root, expirationTime) { |
| 13138 | !!isRendering ? invariant(false, 'work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method.') : void 0; |
| 13139 | // Perform work on root as if the given expiration time is the current time. |
| 13140 | // This has the effect of synchronously flushing all work up to and |
| 13141 | // including the given time. |
| 13142 | performWorkOnRoot(root, expirationTime, false); |
| 13143 | finishRendering(); |
| 13144 | } |
| 13145 | |
| 13146 | function finishRendering() { |
| 13147 | nestedUpdateCount = 0; |
nothing calls this directly
no test coverage detected