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

Function getCurrentComponentErrorInfo

docs/index.js:1139–1150  ·  view source on GitHub ↗
(parentType)

Source from the content-addressed store, hash-verified

1137 }
1138 }
1139 function getCurrentComponentErrorInfo(parentType) {
1140 var info = "",
1141 owner = getOwner();
1142 owner &&
1143 (owner = getComponentNameFromType(owner.type)) &&
1144 (info = "\n\nCheck the render method of `" + owner + "`.");
1145 info ||
1146 ((parentType = getComponentNameFromType(parentType)) &&
1147 (info =
1148 "\n\nCheck the top-level render call using <" + parentType + ">."));
1149 return info;
1150 }
1151 function escape(key) {
1152 var escaperLookup = { "=": "=0", ":": "=2" };
1153 return (

Callers 1

validateExplicitKeyFunction · 0.85

Calls 2

getOwnerFunction · 0.85
getComponentNameFromTypeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…