MCPcopy Index your code
hub / github.com/microsoft/SandDance / createRootErrorUpdate

Function createRootErrorUpdate

docs/external/js/react-dom.development.js:20830–20847  ·  view source on GitHub ↗
(fiber, errorInfo, expirationTime)

Source from the content-addressed store, hash-verified

20828 var PossiblyWeakMap$1 = typeof WeakMap === 'function' ? WeakMap : Map;
20829
20830 function createRootErrorUpdate(fiber, errorInfo, expirationTime) {
20831 var update = createUpdate(expirationTime, null); // Unmount the root by rendering null.
20832
20833 update.tag = CaptureUpdate; // Caution: React DevTools currently depends on this property
20834 // being called "element".
20835
20836 update.payload = {
20837 element: null
20838 };
20839 var error = errorInfo.value;
20840
20841 update.callback = function () {
20842 onUncaughtError(error);
20843 logError(fiber, errorInfo);
20844 };
20845
20846 return update;
20847 }
20848
20849 function createClassErrorUpdate(fiber, errorInfo, expirationTime) {
20850 var update = createUpdate(expirationTime, null);

Callers 2

throwExceptionFunction · 0.85

Calls 2

createUpdateFunction · 0.85
logErrorFunction · 0.85

Tested by

no test coverage detected