Skip to content

Commit

Permalink
Removed outdated TODO comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Vaughn committed Feb 3, 2020
1 parent 8d4ed97 commit 0fb7bba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-reconciler/src/ReactFiberCommitWork.js
Expand Up @@ -423,7 +423,7 @@ export function commitPassiveHookUnmountEffects(finishedWork: Fiber): void {
case ForwardRef:
case SimpleMemoComponent:
case Chunk: {
commitHookEffectList(HookPassive, NoHookEffect, finishedWork);
commitHookEffectListUnmount(HookPassive | HookHasEffect, finishedWork);
break;
}
default:
Expand All @@ -439,7 +439,7 @@ export function commitPassiveHookMountEffects(finishedWork: Fiber): void {
case ForwardRef:
case SimpleMemoComponent:
case Chunk: {
commitHookEffectList(NoHookEffect, HookPassive, finishedWork);
commitHookEffectListMount(HookPassive | HookHasEffect, finishedWork);
break;
}
default:
Expand Down

0 comments on commit 0fb7bba

Please sign in to comment.