(root, expirationTime)
| 13007 | } |
| 13008 | |
| 13009 | function flushRoot(root, expirationTime) { |
| 13010 | !!isRendering ? invariant(false, 'work.commit(): Cannot commit while already rendering. This likely means you attempted to commit from inside a lifecycle method.') : void 0; |
| 13011 | // Perform work on root as if the given expiration time is the current time. |
| 13012 | // This has the effect of synchronously flushing all work up to and |
| 13013 | // including the given time. |
| 13014 | performWorkOnRoot(root, expirationTime, false); |
| 13015 | finishRendering(); |
| 13016 | } |
| 13017 | |
| 13018 | function finishRendering() { |
| 13019 | nestedUpdateCount = 0; |
nothing calls this directly
no test coverage detected