dillon1000/react
Commit
Browse files Create ReactGenericBatching injection wrapper around BatchedUpdates
This moves calls that don't know if they're in a Fiber or Stack context to use ReactGenericBatching.batchedUpdates. The corresponding one will be injected from either the stack reconciler and/or the fiber reconciler if they're loaded at the same time. This lets them share the event system when they're both used at once. This can also be useful for libraries that call unstable_batchedUpdates today but don't know which renderer to use.
Changed paths6 files
First-parent comparisonsrc/renderers/dom/shared/ReactEventListener.js ModifiedM src/renderers/dom/shared/eventPlugins/ChangeEventPlugin.js ModifiedM src/renderers/dom/stack/client/ReactDOMStackInjection.js ModifiedM src/renderers/native/ReactNativeEventEmitter.js ModifiedM src/renderers/native/ReactNativeStackInjection.js ModifiedA src/renderers/shared/shared/event/ReactGenericBatching.js AddedPatch
Files changed
Rendering syntax-highlighted changes…