(sourceFiber, boundaryFiber, value, expirationTime)
| 13377 | } |
| 13378 | |
| 13379 | function scheduleCapture(sourceFiber, boundaryFiber, value, expirationTime) { |
| 13380 | // TODO: We only support dispatching errors. |
| 13381 | var capturedValue = createCapturedValue(value, sourceFiber); |
| 13382 | var update = { |
| 13383 | expirationTime: expirationTime, |
| 13384 | partialState: null, |
| 13385 | callback: null, |
| 13386 | isReplace: false, |
| 13387 | isForced: false, |
| 13388 | capturedValue: capturedValue, |
| 13389 | next: null |
| 13390 | }; |
| 13391 | insertUpdateIntoFiber(boundaryFiber, update); |
| 13392 | scheduleWork(boundaryFiber, expirationTime); |
| 13393 | } |
| 13394 | |
| 13395 | function dispatch(sourceFiber, value, expirationTime) { |
| 13396 | !(!isWorking || isCommitting) ? invariant(false, 'dispatch: Cannot dispatch during the render phase.') : void 0; |
no test coverage detected