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

Function recordEffectError

packages/react-reconciler/src/ReactProfilerTimer.js:656–668  ·  view source on GitHub ↗
(errorInfo: CapturedValue<mixed>)

Source from the content-addressed store, hash-verified

654}
655
656export function recordEffectError(errorInfo: CapturedValue<mixed>): void {
657 if (!enableProfilerTimer || !enableProfilerCommitHooks) {
658 return;
659 }
660 if (componentEffectErrors === null) {
661 componentEffectErrors = [];
662 }
663 componentEffectErrors.push(errorInfo);
664 if (commitErrors === null) {
665 commitErrors = [];
666 }
667 commitErrors.push(errorInfo);
668}
669
670export function resetCommitErrors(): void {
671 commitErrors = null;

Callers 2

captureCommitPhaseErrorFunction · 0.90

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected