We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea2c6d7 commit 568ef3eCopy full SHA for 568ef3e
packages/react-reconciler/src/ReactFiberCommitWork.js
@@ -730,11 +730,11 @@ function commitUnmount(current: Fiber): void {
730
if (typeof instance.componentWillUnmount === 'function') {
731
safelyCallComponentWillUnmount(current, instance);
732
}
733
- return;
+ break;
734
735
case HostComponent: {
736
safelyDetachRef(current);
737
738
739
case HostPortal: {
740
// TODO: this is recursive.
@@ -745,7 +745,7 @@ function commitUnmount(current: Fiber): void {
745
} else if (supportsPersistence) {
746
emptyPortalContainer(current);
747
748
749
750
case EventComponent: {
751
if (enableEventAPI) {
0 commit comments