()
| 1855 | // If called outside of a render or commit will flush all sync work on all roots |
| 1856 | // Returns whether the the call was during a render or not |
| 1857 | export function flushSyncWork(): boolean { |
| 1858 | if ((executionContext & (RenderContext | CommitContext)) === NoContext) { |
| 1859 | flushSyncWorkOnAllRoots(); |
| 1860 | return false; |
| 1861 | } |
| 1862 | return true; |
| 1863 | } |
| 1864 | |
| 1865 | export function isAlreadyRendering(): boolean { |
| 1866 | // Used by the renderer to print a warning if certain APIs are called from |
no test coverage detected