MCPcopy Index your code
hub / github.com/krasimir/react-in-patterns / scheduleCapture

Function scheduleCapture

code/composition/public/app.js:13482–13496  ·  view source on GitHub ↗
(sourceFiber, boundaryFiber, value, expirationTime)

Source from the content-addressed store, hash-verified

13480 }
13481
13482 function scheduleCapture(sourceFiber, boundaryFiber, value, expirationTime) {
13483 // TODO: We only support dispatching errors.
13484 var capturedValue = createCapturedValue(value, sourceFiber);
13485 var update = {
13486 expirationTime: expirationTime,
13487 partialState: null,
13488 callback: null,
13489 isReplace: false,
13490 isForced: false,
13491 capturedValue: capturedValue,
13492 next: null
13493 };
13494 insertUpdateIntoFiber(boundaryFiber, update);
13495 scheduleWork(boundaryFiber, expirationTime);
13496 }
13497
13498 function dispatch(sourceFiber, value, expirationTime) {
13499 !(!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