-
Notifications
You must be signed in to change notification settings - Fork 47k
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
React Event System: cleanup plugins + break out update batching logic #18503
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 5ceb334:
|
Details of bundled changes.Comparing: fe2cb52...5ceb334 react-dom
ReactDOM: size: 🔺+7.0%, gzip: 🔺+7.0% Size changes (stable) |
Details of bundled changes.Comparing: fe2cb52...5ceb334 react-dom
ReactDOM: size: 0.0%, gzip: -0.0% Size changes (experimental) |
Where does this happen? |
3644977
to
c55d56f
Compare
@gaearon Ah, well spotted. |
3502039
to
d4b691f
Compare
Include changes Fix bunch of issues Cleanup Fix
d4b691f
to
5ceb334
Compare
What are you saying here? This plugin wasn't injected by react-dom before and hasn't been removed either. |
Ah, I thought #18483 was merged already. I've updated the summary. |
This PR cleans up a bunch of things with the existing plugin event system that should simplify things and also remove some of the indirection that exists when we try to share things between different renderers to keep things DRY but actually ship irrelevant parts of the code with that when we do.
ReactGenericBatching.js
has been forked for ReactDOM. That version is calledReactDOMUpdateBatching.js
and contains all the ReactDOM parts, which have been removed fromReactGenericBatching.js
.ReactControlledComponent.js
has been moved into ReactDOM and has been renamedReactDOMControlledComponent.js
to reflect that no other renderer, but ReactDOM uses it.ReactTestUtils
with an inlined version ofrunEventsInBatch
and removed the export from ReactDOM internals.