MCPcopy Create free account
hub / github.com/caseywebdev/react-list / getNextHydratable

Function getNextHydratable

docs/index.js:17000–17018  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

16998 return instance;
16999}
17000function getNextHydratable(node) {
17001 for (; null != node; node = node.nextSibling) {
17002 var nodeType = node.nodeType;
17003 if (1 === nodeType || 3 === nodeType) break;
17004 if (8 === nodeType) {
17005 nodeType = node.data;
17006 if (
17007 "$" === nodeType ||
17008 "$!" === nodeType ||
17009 "$?" === nodeType ||
17010 "F!" === nodeType ||
17011 "F" === nodeType
17012 )
17013 break;
17014 if ("/$" === nodeType) return null;
17015 }
17016 }
17017 return node;
17018}
17019function getParentSuspenseInstance(targetInstance) {
17020 targetInstance = targetInstance.previousSibling;
17021 for (var depth = 0; targetInstance; ) {

Callers 7

popHydrationStateFunction · 0.85
mountActionStateFunction · 0.85
updateSuspenseComponentFunction · 0.85
beginWorkFunction · 0.85
canHydrateInstanceFunction · 0.85
canHydrateTextInstanceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…