MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / scheduleCapture

Function scheduleCapture

code/redux/public/app.js:13595–13609  ·  view source on GitHub ↗
(sourceFiber, boundaryFiber, value, expirationTime)

Source from the content-addressed store, hash-verified

13593 }
13594
13595 function scheduleCapture(sourceFiber, boundaryFiber, value, expirationTime) {
13596 // TODO: We only support dispatching errors.
13597 var capturedValue = createCapturedValue(value, sourceFiber);
13598 var update = {
13599 expirationTime: expirationTime,
13600 partialState: null,
13601 callback: null,
13602 isReplace: false,
13603 isForced: false,
13604 capturedValue: capturedValue,
13605 next: null
13606 };
13607 insertUpdateIntoFiber(boundaryFiber, update);
13608 scheduleWork(boundaryFiber, expirationTime);
13609 }
13610
13611 function dispatch(sourceFiber, value, expirationTime) {
13612 !(!isWorking || isCommitting) ? invariant(false, 'dispatch: Cannot dispatch during the render phase.') : void 0;

Callers 1

dispatchFunction · 0.70

Calls 3

createCapturedValueFunction · 0.70
insertUpdateIntoFiberFunction · 0.70
scheduleWorkFunction · 0.70

Tested by

no test coverage detected