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

Function callComponentWillUnmountWithTimer

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

Source from the content-addressed store, hash-verified

11220
11221
11222 var callComponentWillUnmountWithTimer = function (current, instance) {
11223 startPhaseTimer(current, 'componentWillUnmount');
11224 instance.props = current.memoizedProps;
11225 instance.state = current.memoizedState;
11226 instance.componentWillUnmount();
11227 stopPhaseTimer();
11228 };
11229
11230 // Capture errors so they don't interrupt unmounting.
11231 function safelyCallComponentWillUnmount(current, instance) {

Callers

nothing calls this directly

Calls 3

componentWillUnmountMethod · 0.80
startPhaseTimerFunction · 0.70
stopPhaseTimerFunction · 0.70

Tested by

no test coverage detected