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

Function safelyCallDestroy

docs/external/js/react-dom.development.js:19750–19759  ·  view source on GitHub ↗
(current, destroy)

Source from the content-addressed store, hash-verified

19748 }
19749
19750 function safelyCallDestroy(current, destroy) {
19751 {
19752 invokeGuardedCallback(null, destroy, null);
19753
19754 if (hasCaughtError()) {
19755 var error = clearCaughtError();
19756 captureCommitPhaseError(current, error);
19757 }
19758 }
19759 }
19760
19761 function commitBeforeMutationLifeCycles(current, finishedWork) {
19762 switch (finishedWork.tag) {

Callers 1

commitUnmountFunction · 0.85

Calls 4

invokeGuardedCallbackFunction · 0.85
hasCaughtErrorFunction · 0.85
clearCaughtErrorFunction · 0.85
captureCommitPhaseErrorFunction · 0.85

Tested by

no test coverage detected