mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +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 parent
b899819e77
commit
f961050a37
1 file changed
+1
-3
+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