(request: Request)
| 6020 | } |
| 6021 | |
| 6022 | function enqueueFlush(request: Request): void { |
| 6023 | if ( |
| 6024 | request.flushScheduled === false && |
| 6025 | // If there are pinged tasks we are going to flush anyway after work completes |
| 6026 | request.pingedTasks.length === 0 && |
| 6027 | // If there is no destination there is nothing we can flush to. A flush will |
| 6028 | // happen when we start flowing again |
| 6029 | (request.destination !== null || |
| 6030 | (__DEV__ && request.debugDestination !== null)) |
| 6031 | ) { |
| 6032 | request.flushScheduled = true; |
| 6033 | // Unlike startWork and pingTask we intetionally use scheduleWork |
| 6034 | // here even during prerenders to allow as much batching as possible |
| 6035 | scheduleWork(() => { |
| 6036 | request.flushScheduled = false; |
| 6037 | flushCompletedChunks(request); |
| 6038 | }); |
| 6039 | } |
| 6040 | } |
| 6041 | |
| 6042 | function callOnAllReadyIfReady(request: Request): void { |
| 6043 | if (request.abortableTasks.size === 0) { |
no test coverage detected