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

Function getCurrentComponentErrorInfo

code/redux/public/app.js:20782–20792  ·  view source on GitHub ↗
(parentType)

Source from the content-addressed store, hash-verified

20780var ownerHasKeyUseWarning = {};
20781
20782function getCurrentComponentErrorInfo(parentType) {
20783 var info = getDeclarationErrorAddendum();
20784
20785 if (!info) {
20786 var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
20787 if (parentName) {
20788 info = '\n\nCheck the top-level render call using <' + parentName + '>.';
20789 }
20790 }
20791 return info;
20792}
20793
20794/**
20795 * 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