dillon1000/react
Commit
Browse files 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.
Changed paths5 files
First-parent comparisonpackages/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 ModifiedPatch
Files changed
Rendering syntax-highlighted changes…