MCPcopy Index your code
hub / github.com/react/react / printErrorsAndWarnings

Function printErrorsAndWarnings

packages/react-devtools-shared/src/devtools/utils.js:120–127  ·  view source on GitHub ↗
(element: Element)

Source from the content-addressed store, hash-verified

118 }
119
120 function printErrorsAndWarnings(element: Element): string {
121 const {errorCount, warningCount} =
122 store.getErrorAndWarningCountForElementID(element.id);
123 if (errorCount === 0 && warningCount === 0) {
124 return '';
125 }
126 return ` ${errorCount > 0 ? '✕' : ''}${warningCount > 0 ? '⚠' : ''}`;
127 }
128
129 const ownerFlatTree = state !== null ? state.ownerFlatTree : null;
130 if (ownerFlatTree !== null) {

Callers 1

printStoreFunction · 0.85

Tested by

no test coverage detected