diff --git a/packages/react-reconciler/src/ReactFiberCommitWork.js b/packages/react-reconciler/src/ReactFiberCommitWork.js index 1efd1fcf8df..60662d2388f 100644 --- a/packages/react-reconciler/src/ReactFiberCommitWork.js +++ b/packages/react-reconciler/src/ReactFiberCommitWork.js @@ -499,13 +499,7 @@ function commitUnmount(current: Fiber): void { case ClassComponent: { safelyDetachRef(current); const instance = current.stateNode; - if ( - // Typically, a component that mounted will have an instance. However, - // outside of concurrent mode, a suspended component may commit without - // an instance, so we need to check whether it exists. - instance !== null && - typeof instance.componentWillUnmount === 'function' - ) { + if (typeof instance.componentWillUnmount === 'function') { safelyCallComponentWillUnmount(current, instance); } return;