MCPcopy Index your code
hub / github.com/plotly/dash / createRootErrorUpdate

Function createRootErrorUpdate

dash/deps/react-dom@18.2.0.js:18717–18734  ·  view source on GitHub ↗
(fiber, errorInfo, lane)

Source from the content-addressed store, hash-verified

18715 var PossiblyWeakMap$1 = typeof WeakMap === 'function' ? WeakMap : Map;
18716
18717 function createRootErrorUpdate(fiber, errorInfo, lane) {
18718 var update = createUpdate(NoTimestamp, lane); // Unmount the root by rendering null.
18719
18720 update.tag = CaptureUpdate; // Caution: React DevTools currently depends on this property
18721 // being called "element".
18722
18723 update.payload = {
18724 element: null
18725 };
18726 var error = errorInfo.value;
18727
18728 update.callback = function () {
18729 onUncaughtError(error);
18730 logCapturedError(fiber, errorInfo);
18731 };
18732
18733 return update;
18734 }
18735
18736 function createClassErrorUpdate(fiber, errorInfo, lane) {
18737 var update = createUpdate(NoTimestamp, lane);

Callers 2

throwExceptionFunction · 0.70

Calls 2

createUpdateFunction · 0.70
logCapturedErrorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…