MCPcopy Index your code
hub / github.com/caseywebdev/react-list / validateChildKeys

Function validateChildKeys

docs/index.js:1075–1097  ·  view source on GitHub ↗
(node, parentType)

Source from the content-addressed store, hash-verified

1073 return newKey;
1074 }
1075 function validateChildKeys(node, parentType) {
1076 if (
1077 "object" === typeof node &&
1078 node &&
1079 node.$$typeof !== REACT_CLIENT_REFERENCE
1080 )
1081 if (isArrayImpl(node))
1082 for (var i = 0; i < node.length; i++) {
1083 var child = node[i];
1084 isValidElement(child) && validateExplicitKey(child, parentType);
1085 }
1086 else if (isValidElement(node))
1087 node._store && (node._store.validated = 1);
1088 else if (
1089 ((i = getIteratorFn(node)),
1090 "function" === typeof i &&
1091 i !== node.entries &&
1092 ((i = i.call(node)), i !== node))
1093 )
1094 for (; !(node = i.next()).done; )
1095 isValidElement(node.value) &&
1096 validateExplicitKey(node.value, parentType);
1097 }
1098 function isValidElement(object) {
1099 return (
1100 "object" === typeof object &&

Callers 2

index.jsFile · 0.85
jsxDEVImplFunction · 0.85

Calls 3

isValidElementFunction · 0.85
validateExplicitKeyFunction · 0.85
getIteratorFnFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…