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

Function onError

packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js:757–760  ·  view source on GitHub ↗
(x, errorInfo)

Source from the content-addressed store, hash-verified

755 const theError = new Error('Test');
756 const loggedErrors = [];
757 function onError(x, errorInfo) {
758 loggedErrors.push(x);
759 return 'Hash of (' + x.message + ')';
760 }
761 const expectedDigest = onError(theError);
762 loggedErrors.length = 0;
763

Callers 10

IndirectionFunction · 0.70
AppFunction · 0.70
FooFunction · 0.70
AbortFunction · 0.70
FooFunction · 0.70

Calls 1

pushMethod · 0.65

Tested by

no test coverage detected