MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / safelyCallComponentWillUnmount

Function safelyCallComponentWillUnmount

code/third-party/public/app.js:10464–10472  ·  view source on GitHub ↗
(current, instance)

Source from the content-addressed store, hash-verified

10462
10463 // Capture errors so they don't interrupt unmounting.
10464 function safelyCallComponentWillUnmount(current, instance) {
10465 {
10466 invokeGuardedCallback$3(null, callComponentWillUnmountWithTimer, null, current, instance);
10467 if (hasCaughtError$1()) {
10468 var unmountError = clearCaughtError$1();
10469 captureError(current, unmountError);
10470 }
10471 }
10472 }
10473
10474 function safelyDetachRef(current) {
10475 var ref = current.ref;

Callers 1

commitUnmountFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected