-
Notifications
You must be signed in to change notification settings - Fork 46.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite ReactFiberScheduler for better integration with Scheduler package #15151
Merged
Commits on Apr 2, 2019
-
Adds a new implementation of ReactFiberScheduler behind a feature flag. We will maintain both implementations in parallel until the new one is proven stable enough to replace the old one. The main difference between the implementations is that the new one is integrated with the Scheduler package's priority levels.
Configuration menu - View commit details
-
Copy full SHA for 6e57ee4 - Browse repository at this point
Copy the full SHA 6e57ee4View commit details -
Conditionally add fields to FiberRoot
Some fields only used by the old scheduler, and some by the new.
Configuration menu - View commit details
-
Copy full SHA for 8cf3977 - Browse repository at this point
Copy the full SHA 8cf3977View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8c2edf1 - Browse repository at this point
Copy the full SHA 8c2edf1View commit details -
If synchronous updates are scheduled by a passive effect, that work should be flushed synchronously, even if flushPassiveEffects is called inside batchedUpdates.
Configuration menu - View commit details
-
Copy full SHA for f7d142c - Browse repository at this point
Copy the full SHA f7d142cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 893b96e - Browse repository at this point
Copy the full SHA 893b96eView commit details -
Revert ability to cancel the current callback
React doesn't need this anyway because it never schedules callbacks if it's already rendering.
Configuration menu - View commit details
-
Copy full SHA for 25cfee5 - Browse repository at this point
Copy the full SHA 25cfee5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 77c7ed1 - Browse repository at this point
Copy the full SHA 77c7ed1View commit details -
Fix ReactFiberScheduler dead code elimination
Should initialize to nothing, then assign the exports conditionally, instead of initializing to the old exports and then reassigning to the new ones.
Configuration menu - View commit details
-
Copy full SHA for e0a8526 - Browse repository at this point
Copy the full SHA e0a8526View commit details -
Configuration menu - View commit details
-
Copy full SHA for be3bec7 - Browse repository at this point
Copy the full SHA be3bec7View commit details -
Call Scheduler.flushAll unconditionally in tests
Instead of wrapping in enableNewScheduler flag.
Configuration menu - View commit details
-
Copy full SHA for f1dc626 - Browse repository at this point
Copy the full SHA f1dc626View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.