dillon1000/react
Commit
Browse files Do not bind topLevelType to dispatch (#13618)
* Do not bind topLevelType to dispatch A previous change made it such that all top level event types correspond to their associated native event string values. This commit eliminates the .bind attached to dispatch and fixes a related flow type. * Add note about why casting event.type to a topLevelType is safe * Move interactiveUpdates comment to point of assignment
Changed paths4 files
First-parent comparisonpackages/events/PluginModuleType.js ModifiedM packages/events/ReactGenericBatching.js ModifiedM packages/react-dom/src/events/ReactDOMEventListener.js ModifiedM packages/react-dom/src/test-utils/ReactTestUtils.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…