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