MCPcopy
hub / github.com/tastejs/todomvc / updateContainerAtExpirationTime

Function updateContainerAtExpirationTime

examples/typescript-react/js/bundle.js:20219–20243  ·  view source on GitHub ↗
(element, container, parentComponent, expirationTime, callback)

Source from the content-addressed store, hash-verified

20217}
20218
20219function updateContainerAtExpirationTime(element, container, parentComponent, expirationTime, callback) {
20220 // TODO: If this is a nested container, this won't be the root.
20221 var current$$1 = container.current;
20222
20223 {
20224 if (ReactFiberInstrumentation_1.debugTool) {
20225 if (current$$1.alternate === null) {
20226 ReactFiberInstrumentation_1.debugTool.onMountContainer(container);
20227 } else if (element === null) {
20228 ReactFiberInstrumentation_1.debugTool.onUnmountContainer(container);
20229 } else {
20230 ReactFiberInstrumentation_1.debugTool.onUpdateContainer(container);
20231 }
20232 }
20233 }
20234
20235 var context = getContextForSubtree(parentComponent);
20236 if (container.context === null) {
20237 container.context = context;
20238 } else {
20239 container.pendingContext = context;
20240 }
20241
20242 return scheduleRootUpdate(current$$1, element, expirationTime, callback);
20243}
20244
20245function findHostInstance(component) {
20246 var fiber = get(component);

Callers 2

updateContainerFunction · 0.85
bundle.jsFile · 0.85

Calls 2

getContextForSubtreeFunction · 0.85
scheduleRootUpdateFunction · 0.85

Tested by

no test coverage detected