mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Always flushPassiveEffects before rendering
I mistakenly wrapped this in the revertPassiveEffectsChange feature flag. It should flush regardless of the flag.
This commit is contained in:
+1
-3
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user