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:
Andrew Clark
2019-05-15 18:13:05 -07:00
parent b899819e77
commit f961050a37
+1 -3
View File
@@ -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.