MCPcopy Create free account
hub / github.com/reactjs/react-rails / safelyCallDestroy

Function safelyCallDestroy

lib/assets/react-source/development/react.js:23310–23319  ·  view source on GitHub ↗
(current, destroy)

Source from the content-addressed store, hash-verified

23308 }
23309
23310 function safelyCallDestroy(current, destroy) {
23311 {
23312 invokeGuardedCallback(null, destroy, null);
23313
23314 if (hasCaughtError()) {
23315 var error = clearCaughtError();
23316 captureCommitPhaseError(current, error);
23317 }
23318 }
23319 }
23320
23321 function commitBeforeMutationLifeCycles(current, finishedWork) {
23322 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