-
Notifications
You must be signed in to change notification settings - Fork 45.6k
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
Resolve host configs at build time #12792
Merged
Merged
Commits on May 18, 2018
-
This makes it easier to change the source config without affecting the build test config.
Configuration menu - View commit details
-
Copy full SHA for a6ac452 - Browse repository at this point
Copy the full SHA a6ac452View commit details -
Statically import the host config
This changes react-reconciler to import HostConfig instead of getting it through a function argument. Rather than start with packages like ReactDOM that want to inline it, I started with React Noop and ensured that *custom* renderers using react-reconciler package still work. To do this, I'm making HostConfig module in the reconciler look at a global variable by default (which, in case of the react-reconciler npm package, ends up being the host config argument in the top-level scope). This is still very broken.
Configuration menu - View commit details
-
Copy full SHA for fe59043 - Browse repository at this point
Copy the full SHA fe59043View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb2548e - Browse repository at this point
Copy the full SHA cb2548eView commit details -
Configuration menu - View commit details
-
Copy full SHA for f17323b - Browse repository at this point
Copy the full SHA f17323bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 21a2916 - Browse repository at this point
Copy the full SHA 21a2916View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ea7e4d - Browse repository at this point
Copy the full SHA 1ea7e4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for d292923 - Browse repository at this point
Copy the full SHA d292923View commit details -
Configuration menu - View commit details
-
Copy full SHA for 265ba23 - Browse repository at this point
Copy the full SHA 265ba23View commit details -
We know nextHydratableInstance doesn't get mutated inside this function, but Flow doesn't so it thinks it may be null. Help Flow.
Configuration menu - View commit details
-
Copy full SHA for 6037625 - Browse repository at this point
Copy the full SHA 6037625View commit details -
Configuration menu - View commit details
-
Copy full SHA for a501c8b - Browse repository at this point
Copy the full SHA a501c8bView commit details -
Get rid of enable*Reconciler flags
They are not as useful anymore because for almost all cases (except third party renderers) we *know* whether it supports mutation or persistence. This refactoring means react-reconciler and react-reconciler/persistent third-party packages now ship the same thing. Not ideal, but this seems worth how simpler the code becomes. We can later look into addressing it by having a single toggle instead.
Configuration menu - View commit details
-
Copy full SHA for a1b7241 - Browse repository at this point
Copy the full SHA a1b7241View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d7981f - Browse repository at this point
Copy the full SHA 7d7981fView commit details -
Configuration menu - View commit details
-
Copy full SHA for e6410f9 - Browse repository at this point
Copy the full SHA e6410f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for bdcc773 - Browse repository at this point
Copy the full SHA bdcc773View commit details -
Configuration menu - View commit details
-
Copy full SHA for 56ca671 - Browse repository at this point
Copy the full SHA 56ca671View 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.