Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upEnable modern event system and delete dead code #19230
Conversation
codesandbox
bot
commented
Jul 1, 2020
|
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 d04cd4d:
|
| ReactDOM = require('react-dom'); | ||
| Scheduler = require('scheduler'); | ||
| }); | ||
|
|
||
| // @gate experimental | ||
| it('flushes pending interactive work before extracting event handler', () => { | ||
| container = document.createElement('div'); | ||
| const root = ReactDOM.unstable_createRoot(container); | ||
| const root = ReactDOM.createRoot(container); |
This comment has been minimized.
This comment has been minimized.
gaearon
Jul 1, 2020
Author
Member
I didn't change this one. Git just thinks I renamed it whereas I actually deleted old test.
Kind of confusing why it uses unprefixed name. I thought that doesn't work anymore.
sizebot
commented
Jul 1, 2020
Details of bundled changes.Comparing: e3f4eb7...d04cd4d react-dom
react-native-renderer
ReactDOM: size: -24.8%, gzip: -21.7% Size changes (experimental) |
sizebot
commented
Jul 1, 2020
Details of bundled changes.Comparing: e3f4eb7...d04cd4d react-dom
react-native-renderer
ReactDOM: size: -24.8%, gzip: -21.7% Size changes (stable) |
|
It looks good apart from |
|
Hmm. I'm not sure I follow. The native renderer uses the legacy system, right? We don't yet remove pooling on RN either. |
|
Ah , ignore me. I got confused by which file. |
9fba65e
into
facebook:master
gaearon commentedJul 1, 2020
•
edited
In #19228, I forked legacy event system folder for DOM and Native.
In this PR, I am removing the
enableModernEventSystemflag altogether:enableModernEventSystem = true.enableModernEventSystem = false.This enables us to remove a bunch of files and codepaths in DOM. There's more to do there but this is already fairly invasive so I will send the rest as follow-ups.
You should review without whitespace. https://github.com/facebook/react/pull/19230/files?diff=split&w=1