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

Function updateContainerAtExpirationTime

code/redux/public/app.js:14343–14367  ·  view source on GitHub ↗
(element, container, parentComponent, currentTime, expirationTime, callback)

Source from the content-addressed store, hash-verified

14341 }
14342
14343 function updateContainerAtExpirationTime(element, container, parentComponent, currentTime, expirationTime, callback) {
14344 // TODO: If this is a nested container, this won't be the root.
14345 var current = container.current;
14346
14347 {
14348 if (ReactFiberInstrumentation_1.debugTool) {
14349 if (current.alternate === null) {
14350 ReactFiberInstrumentation_1.debugTool.onMountContainer(container);
14351 } else if (element === null) {
14352 ReactFiberInstrumentation_1.debugTool.onUnmountContainer(container);
14353 } else {
14354 ReactFiberInstrumentation_1.debugTool.onUpdateContainer(container);
14355 }
14356 }
14357 }
14358
14359 var context = getContextForSubtree(parentComponent);
14360 if (container.context === null) {
14361 container.context = context;
14362 } else {
14363 container.pendingContext = context;
14364 }
14365
14366 return scheduleRootUpdate(current, element, currentTime, expirationTime, callback);
14367 }
14368
14369 function findHostInstance(fiber) {
14370 var hostFiber = findCurrentHostFiber(fiber);

Callers 1

ReactFiberReconciler$1Function · 0.70

Calls 2

getContextForSubtreeFunction · 0.70
scheduleRootUpdateFunction · 0.70

Tested by

no test coverage detected