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

Function isContainerMarkedAsRoot

lib/assets/react-source/development/react.js:11523–11525  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

11521 node[internalContainerInstanceKey] = null;
11522 }
11523 function isContainerMarkedAsRoot(node) {
11524 return !!node[internalContainerInstanceKey];
11525 } // Given a DOM node, return the closest HostComponent or HostText fiber ancestor.
11526 // If the target node is part of a hydrated or not yet rendered subtree, then
11527 // this may also return a SuspenseComponent or HostRoot to indicate that.
11528 // Conceptually the HostRoot fiber is a child of the Container node. So if you

Callers 3

hydrateFunction · 0.85
renderFunction · 0.85
unmountComponentAtNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected