MCPcopy Create free account
hub / github.com/reactjs/react-rails / getPublicRootInstance

Function getPublicRootInstance

lib/assets/react-source/development/react.js:28071–28085  ·  view source on GitHub ↗
(container)

Source from the content-addressed store, hash-verified

28069 return expirationTime;
28070 }
28071 function getPublicRootInstance(container) {
28072 var containerFiber = container.current;
28073
28074 if (!containerFiber.child) {
28075 return null;
28076 }
28077
28078 switch (containerFiber.child.tag) {
28079 case HostComponent:
28080 return getPublicInstance(containerFiber.child.stateNode);
28081
28082 default:
28083 return containerFiber.child.stateNode;
28084 }
28085 }
28086
28087 function markRetryTimeImpl(fiber, retryTime) {
28088 var suspenseState = fiber.memoizedState;

Callers 1

Calls 1

getPublicInstanceFunction · 0.85

Tested by

no test coverage detected