MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / getCurrentComponentErrorInfo

Function getCurrentComponentErrorInfo

code/styling/public/app.js:19438–19448  ·  view source on GitHub ↗
(parentType)

Source from the content-addressed store, hash-verified

19436var ownerHasKeyUseWarning = {};
19437
19438function getCurrentComponentErrorInfo(parentType) {
19439 var info = getDeclarationErrorAddendum();
19440
19441 if (!info) {
19442 var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
19443 if (parentName) {
19444 info = '\n\nCheck the top-level render call using <' + parentName + '>.';
19445 }
19446 }
19447 return info;
19448}
19449
19450/**
19451 * Warn if the element doesn't have an explicit key assigned to it.

Callers 1

validateExplicitKeyFunction · 0.70

Calls 1

Tested by

no test coverage detected