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

Function updateContainerAtExpirationTime

code/styling/public/app.js:14092–14116  ·  view source on GitHub ↗
(element, container, parentComponent, currentTime, expirationTime, callback)

Source from the content-addressed store, hash-verified

14090 }
14091
14092 function updateContainerAtExpirationTime(element, container, parentComponent, currentTime, expirationTime, callback) {
14093 // TODO: If this is a nested container, this won't be the root.
14094 var current = container.current;
14095
14096 {
14097 if (ReactFiberInstrumentation_1.debugTool) {
14098 if (current.alternate === null) {
14099 ReactFiberInstrumentation_1.debugTool.onMountContainer(container);
14100 } else if (element === null) {
14101 ReactFiberInstrumentation_1.debugTool.onUnmountContainer(container);
14102 } else {
14103 ReactFiberInstrumentation_1.debugTool.onUpdateContainer(container);
14104 }
14105 }
14106 }
14107
14108 var context = getContextForSubtree(parentComponent);
14109 if (container.context === null) {
14110 container.context = context;
14111 } else {
14112 container.pendingContext = context;
14113 }
14114
14115 return scheduleRootUpdate(current, element, currentTime, expirationTime, callback);
14116 }
14117
14118 function findHostInstance(fiber) {
14119 var hostFiber = findCurrentHostFiber(fiber);

Callers 1

ReactFiberReconciler$1Function · 0.70

Calls 2

getContextForSubtreeFunction · 0.70
scheduleRootUpdateFunction · 0.70

Tested by

no test coverage detected