MCPcopy Create free account
hub / github.com/plotly/dash / callComponentWillUnmountWithTimer

Function callComponentWillUnmountWithTimer

dash/deps/react-dom@18.3.1.js:22894–22908  ·  view source on GitHub ↗
(current, instance)

Source from the content-addressed store, hash-verified

22892 }
22893
22894 var callComponentWillUnmountWithTimer = function (current, instance) {
22895 instance.props = current.memoizedProps;
22896 instance.state = current.memoizedState;
22897
22898 if ( current.mode & ProfileMode) {
22899 try {
22900 startLayoutEffectTimer();
22901 instance.componentWillUnmount();
22902 } finally {
22903 recordLayoutEffectDuration(current);
22904 }
22905 } else {
22906 instance.componentWillUnmount();
22907 }
22908 }; // Capture errors so they don't interrupt mounting.
22909
22910
22911 function safelyCallCommitHookLayoutEffectListMount(current, nearestMountedAncestor) {

Callers 1

Calls 3

startLayoutEffectTimerFunction · 0.70
componentWillUnmountMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…