(sourceFiber, boundaryFiber, value, expirationTime)
| 12672 | } |
| 12673 | |
| 12674 | function scheduleCapture(sourceFiber, boundaryFiber, value, expirationTime) { |
| 12675 | // TODO: We only support dispatching errors. |
| 12676 | var capturedValue = createCapturedValue(value, sourceFiber); |
| 12677 | var update = { |
| 12678 | expirationTime: expirationTime, |
| 12679 | partialState: null, |
| 12680 | callback: null, |
| 12681 | isReplace: false, |
| 12682 | isForced: false, |
| 12683 | capturedValue: capturedValue, |
| 12684 | next: null |
| 12685 | }; |
| 12686 | insertUpdateIntoFiber(boundaryFiber, update); |
| 12687 | scheduleWork(boundaryFiber, expirationTime); |
| 12688 | } |
| 12689 | |
| 12690 | function dispatch(sourceFiber, value, expirationTime) { |
| 12691 | !(!isWorking || isCommitting) ? invariant(false, 'dispatch: Cannot dispatch during the render phase.') : void 0; |
no test coverage detected