MCPcopy Create free account
hub / github.com/microsoft/SandDance / getPublicRootInstance

Function getPublicRootInstance

docs/external/js/react-dom.development.js:24511–24525  ·  view source on GitHub ↗
(container)

Source from the content-addressed store, hash-verified

24509 return expirationTime;
24510 }
24511 function getPublicRootInstance(container) {
24512 var containerFiber = container.current;
24513
24514 if (!containerFiber.child) {
24515 return null;
24516 }
24517
24518 switch (containerFiber.child.tag) {
24519 case HostComponent:
24520 return getPublicInstance(containerFiber.child.stateNode);
24521
24522 default:
24523 return containerFiber.child.stateNode;
24524 }
24525 }
24526
24527 function markRetryTimeImpl(fiber, retryTime) {
24528 var suspenseState = fiber.memoizedState;

Callers 1

Calls 1

getPublicInstanceFunction · 0.85

Tested by

no test coverage detected