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

Function safelyCallComponentWillUnmount

code/styling/public/app.js:11231–11239  ·  view source on GitHub ↗
(current, instance)

Source from the content-addressed store, hash-verified

11229
11230 // Capture errors so they don't interrupt unmounting.
11231 function safelyCallComponentWillUnmount(current, instance) {
11232 {
11233 invokeGuardedCallback$3(null, callComponentWillUnmountWithTimer, null, current, instance);
11234 if (hasCaughtError$1()) {
11235 var unmountError = clearCaughtError$1();
11236 captureError(current, unmountError);
11237 }
11238 }
11239 }
11240
11241 function safelyDetachRef(current) {
11242 var ref = current.ref;

Callers 1

commitUnmountFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected