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

Function getCurrentComponentErrorInfo

code/third-party/public/app.js:18671–18681  ·  view source on GitHub ↗
(parentType)

Source from the content-addressed store, hash-verified

18669var ownerHasKeyUseWarning = {};
18670
18671function getCurrentComponentErrorInfo(parentType) {
18672 var info = getDeclarationErrorAddendum();
18673
18674 if (!info) {
18675 var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
18676 if (parentName) {
18677 info = '\n\nCheck the top-level render call using <' + parentName + '>.';
18678 }
18679 }
18680 return info;
18681}
18682
18683/**
18684 * 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