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

Function validateSuspenseListNestedChild

docs/index.js:27866–27879  ·  view source on GitHub ↗
(childSlot, index)

Source from the content-addressed store, hash-verified

27864 );
27865 }
27866 function validateSuspenseListNestedChild(childSlot, index) {
27867 var isAnArray = isArrayImpl(childSlot);
27868 childSlot = !isAnArray && "function" === typeof getIteratorFn(childSlot);
27869 return isAnArray || childSlot
27870 ? ((isAnArray = isAnArray ? "array" : "iterable"),
27871 console.error(
27872 "A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",
27873 isAnArray,
27874 index,
27875 isAnArray
27876 ),
27877 !1)
27878 : !0;
27879 }
27880 function initSuspenseListRenderState(
27881 workInProgress,
27882 isBackwards,

Callers 1

Calls 1

getIteratorFnFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…