MCPcopy Create free account
hub / github.com/plotly/dash / validateSuspenseListNestedChild

Function validateSuspenseListNestedChild

dash/deps/react-dom@18.3.1.js:20947–20962  ·  view source on GitHub ↗
(childSlot, index)

Source from the content-addressed store, hash-verified

20945 }
20946
20947 function validateSuspenseListNestedChild(childSlot, index) {
20948 {
20949 var isAnArray = isArray(childSlot);
20950 var isIterable = !isAnArray && typeof getIteratorFn(childSlot) === 'function';
20951
20952 if (isAnArray || isIterable) {
20953 var type = isAnArray ? 'array' : 'iterable';
20954
20955 error('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>', type, index, type);
20956
20957 return false;
20958 }
20959 }
20960
20961 return true;
20962 }
20963
20964 function validateSuspenseListChildren(children, revealOrder) {
20965 {

Callers 1

Calls 3

isArrayFunction · 0.70
getIteratorFnFunction · 0.70
errorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…