MCPcopy Create free account
hub / github.com/plotly/dash / createRootErrorUpdate

Function createRootErrorUpdate

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

Source from the content-addressed store, hash-verified

18732 var PossiblyWeakMap$1 = typeof WeakMap === 'function' ? WeakMap : Map;
18733
18734 function createRootErrorUpdate(fiber, errorInfo, lane) {
18735 var update = createUpdate(NoTimestamp, lane); // Unmount the root by rendering null.
18736
18737 update.tag = CaptureUpdate; // Caution: React DevTools currently depends on this property
18738 // being called "element".
18739
18740 update.payload = {
18741 element: null
18742 };
18743 var error = errorInfo.value;
18744
18745 update.callback = function () {
18746 onUncaughtError(error);
18747 logCapturedError(fiber, errorInfo);
18748 };
18749
18750 return update;
18751 }
18752
18753 function createClassErrorUpdate(fiber, errorInfo, lane) {
18754 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…