Skip to content

Commit

Permalink
Always flushPassiveEffects before rendering
Browse files Browse the repository at this point in the history
I  mistakenly wrapped this in the revertPassiveEffectsChange feature
flag. It should flush regardless of the flag.
  • Loading branch information
acdlite committed May 16, 2019
1 parent b899819 commit f961050
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/react-reconciler/src/ReactFiberScheduler.js
Expand Up @@ -755,9 +755,7 @@ function renderRoot(
return commitRoot.bind(null, root);
}

if (!revertPassiveEffectsChange) {
flushPassiveEffects();
}
flushPassiveEffects();

// If the root or expiration time have changed, throw out the existing stack
// and prepare a fresh one. Otherwise we'll continue where we left off.
Expand Down

0 comments on commit f961050

Please sign in to comment.