dillon1000/react

Commit

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
Browse files
Changed paths4 files
First-parent comparison
M packages/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 Modified
Patch

Files changed

Rendering syntax-highlighted changes…