MCPcopy Index your code
hub / github.com/tastejs/todomvc / createRootErrorUpdate

Function createRootErrorUpdate

examples/typescript-react/js/bundle.js:17757–17770  ·  view source on GitHub ↗
(fiber, errorInfo, expirationTime)

Source from the content-addressed store, hash-verified

17755var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
17756
17757function createRootErrorUpdate(fiber, errorInfo, expirationTime) {
17758 var update = createUpdate(expirationTime);
17759 // Unmount the root by rendering null.
17760 update.tag = CaptureUpdate;
17761 // Caution: React DevTools currently depends on this property
17762 // being called "element".
17763 update.payload = { element: null };
17764 var error = errorInfo.value;
17765 update.callback = function () {
17766 onUncaughtError(error);
17767 logError(fiber, errorInfo);
17768 };
17769 return update;
17770}
17771
17772function createClassErrorUpdate(fiber, errorInfo, expirationTime) {
17773 var update = createUpdate(expirationTime);

Callers 2

throwExceptionFunction · 0.85
captureCommitPhaseErrorFunction · 0.85

Calls 3

createUpdateFunction · 0.85
onUncaughtErrorFunction · 0.85
logErrorFunction · 0.85

Tested by

no test coverage detected