dillon1000/react

Commit

Undo dependency injection of batching (#26389)

There's currently a giant cycle between the event system, through
react-dom-bindings, reconciler and then react-dom. We resolve this cycle
using dependency injection. However, this all ends up in the same
bundle. It can be reordered to resolve the cycles. If we avoid
side-effects and avoid reading from module exports during
initialization, this should be resolvable in a more optimal way by the
compiler.
Browse files
Changed paths5 files
First-parent comparison
M packages/react-dom-bindings/src/events/ReactDOMControlledComponent.js ModifiedM packages/react-dom-bindings/src/events/ReactDOMEventListener.js ModifiedM packages/react-dom-bindings/src/events/ReactDOMEventReplaying.js ModifiedM packages/react-dom-bindings/src/events/ReactDOMUpdateBatching.js ModifiedM packages/react-dom/src/client/ReactDOM.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…