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

Function getCurrentComponentErrorInfo

code/communication/public/app.js:19473–19483  ·  view source on GitHub ↗
(parentType)

Source from the content-addressed store, hash-verified

19471var ownerHasKeyUseWarning = {};
19472
19473function getCurrentComponentErrorInfo(parentType) {
19474 var info = getDeclarationErrorAddendum();
19475
19476 if (!info) {
19477 var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
19478 if (parentName) {
19479 info = '\n\nCheck the top-level render call using <' + parentName + '>.';
19480 }
19481 }
19482 return info;
19483}
19484
19485/**
19486 * 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