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

Function clearSuspenseBoundary

docs/index.js:16881–16899  ·  view source on GitHub ↗
(parentInstance, suspenseInstance)

Source from the content-addressed store, hash-verified

16879 });
16880}
16881function clearSuspenseBoundary(parentInstance, suspenseInstance) {
16882 var node = suspenseInstance,
16883 depth = 0;
16884 do {
16885 var nextNode = node.nextSibling;
16886 parentInstance.removeChild(node);
16887 if (nextNode && 8 === nextNode.nodeType)
16888 if (((node = nextNode.data), "/$" === node)) {
16889 if (0 === depth) {
16890 parentInstance.removeChild(nextNode);
16891 retryIfBlockedOn(suspenseInstance);
16892 return;
16893 }
16894 depth--;
16895 } else ("$" !== node && "$?" !== node && "$!" !== node) || depth++;
16896 node = nextNode;
16897 } while (node);
16898 retryIfBlockedOn(suspenseInstance);
16899}
16900function clearContainerSparingly(container) {
16901 var nextNode = container.firstChild;
16902 nextNode && 10 === nextNode.nodeType && (nextNode = nextNode.nextSibling);

Callers 1

Calls 1

retryIfBlockedOnFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…