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

Function safelyCallComponentWillUnmount

code/composition/public/app.js:11369–11377  ·  view source on GitHub ↗
(current, instance)

Source from the content-addressed store, hash-verified

11367
11368 // Capture errors so they don't interrupt unmounting.
11369 function safelyCallComponentWillUnmount(current, instance) {
11370 {
11371 invokeGuardedCallback$3(null, callComponentWillUnmountWithTimer, null, current, instance);
11372 if (hasCaughtError$1()) {
11373 var unmountError = clearCaughtError$1();
11374 captureError(current, unmountError);
11375 }
11376 }
11377 }
11378
11379 function safelyDetachRef(current) {
11380 var ref = current.ref;

Callers 1

commitUnmountFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected