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

Function getCurrentComponentErrorInfo

code/composition/public/app.js:19576–19586  ·  view source on GitHub ↗
(parentType)

Source from the content-addressed store, hash-verified

19574var ownerHasKeyUseWarning = {};
19575
19576function getCurrentComponentErrorInfo(parentType) {
19577 var info = getDeclarationErrorAddendum();
19578
19579 if (!info) {
19580 var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
19581 if (parentName) {
19582 info = '\n\nCheck the top-level render call using <' + parentName + '>.';
19583 }
19584 }
19585 return info;
19586}
19587
19588/**
19589 * 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