MCPcopy
hub / github.com/facebook/react / error

Function error

compiler/packages/react-compiler-runtime/src/index.ts:260–267  ·  view source on GitHub ↗
(l: string, r: string, path: string, depth: number)

Source from the content-addressed store, hash-verified

258 loc: string,
259): void {
260 function error(l: string, r: string, path: string, depth: number) {
261 const str = `${fnName}:${loc} [${kind}] ${variableName}${path} changed from ${l} to ${r} at depth ${depth}`;
262 if (seenErrors.has(str)) {
263 return;
264 }
265 seenErrors.add(str);
266 console.error(str);
267 }
268 const depthLimit = 2;
269 function recur(oldValue: any, newValue: any, path: string, depth: number) {
270 if (depth > depthLimit) {

Callers 2

recurFunction · 0.70
JSXNamespacedNameFunction · 0.50

Calls 3

addMethod · 0.80
hasMethod · 0.65
errorMethod · 0.65

Tested by

no test coverage detected