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

Function isContainerMarkedAsRoot

docs/external/js/react-dom.development.js:7951–7953  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

7949 node[internalContainerInstanceKey] = null;
7950 }
7951 function isContainerMarkedAsRoot(node) {
7952 return !!node[internalContainerInstanceKey];
7953 } // Given a DOM node, return the closest HostComponent or HostText fiber ancestor.
7954 // If the target node is part of a hydrated or not yet rendered subtree, then
7955 // this may also return a SuspenseComponent or HostRoot to indicate that.
7956 // 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