MCPcopy Index your code
hub / github.com/caseywebdev/react-list / safelyCallComponentWillUnmount

Function safelyCallComponentWillUnmount

docs/index.js:11053–11068  ·  view source on GitHub ↗
(
  current,
  nearestMountedAncestor,
  instance
)

Source from the content-addressed store, hash-verified

11051 }
11052}
11053function safelyCallComponentWillUnmount(
11054 current,
11055 nearestMountedAncestor,
11056 instance
11057) {
11058 instance.props = resolveClassComponentProps(
11059 current.type,
11060 current.memoizedProps
11061 );
11062 instance.state = current.memoizedState;
11063 try {
11064 instance.componentWillUnmount();
11065 } catch (error) {
11066 captureCommitPhaseError(current, nearestMountedAncestor, error);
11067 }
11068}
11069function safelyAttachRef(current, nearestMountedAncestor) {
11070 try {
11071 var ref = current.ref;

Calls 7

captureCommitPhaseErrorFunction · 0.85
shouldProfileFunction · 0.85
startEffectTimerFunction · 0.85
runWithFiberInDEVFunction · 0.85
recordEffectDurationFunction · 0.85
componentWillUnmountMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…