dillon1000/react

Commit

Separate SyntheticEvent constructors to prevent deopts (#19907)

* Remove arguments from hot path

* Make SyntheticEvent subtypes monomorphic

* Maybe fix Flow?
Browse files
Changed paths4 files
First-parent comparison
M packages/react-dom/src/events/SyntheticEvent.js ModifiedM packages/react-dom/src/events/plugins/BeforeInputEventPlugin.js ModifiedM packages/react-dom/src/events/plugins/EnterLeaveEventPlugin.js ModifiedM packages/react-dom/src/events/plugins/SimpleEventPlugin.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…