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

Function getNextHydratableInstanceAfterSuspenseInstance

docs/index.js:37977–37995  ·  view source on GitHub ↗
(suspenseInstance)

Source from the content-addressed store, hash-verified

37975 : null;
37976 }
37977 function getNextHydratableInstanceAfterSuspenseInstance(suspenseInstance) {
37978 suspenseInstance = suspenseInstance.nextSibling;
37979 for (var depth = 0; suspenseInstance; ) {
37980 if (8 === suspenseInstance.nodeType) {
37981 var data = suspenseInstance.data;
37982 if (data === SUSPENSE_END_DATA) {
37983 if (0 === depth)
37984 return getNextHydratable(suspenseInstance.nextSibling);
37985 depth--;
37986 } else
37987 (data !== SUSPENSE_START_DATA &&
37988 data !== SUSPENSE_FALLBACK_START_DATA &&
37989 data !== SUSPENSE_PENDING_START_DATA) ||
37990 depth++;
37991 }
37992 suspenseInstance = suspenseInstance.nextSibling;
37993 }
37994 return null;
37995 }
37996 function getParentSuspenseInstance(targetInstance) {
37997 targetInstance = targetInstance.previousSibling;
37998 for (var depth = 0; targetInstance; ) {

Callers 1

popHydrationStateFunction · 0.85

Calls 1

getNextHydratableFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…