dillon1000/react

Commit

Move ComponentEnvironment out of ReactComponent

We currently have three DOM specific hooks that get injected. I move those
out to ReactComponentEnvironment. The idea is to eventually remove this
injection as the reconciler gets refactored.

There is also a BackendIDOperation which is specific to the DOM component
itself so I move this injection to be more specific to the DOMComponent.

E.g. it makes sense for it to be injectable for cross-worker DOM operations
but it doesn't make sense for ART components.
Browse files
Changed paths10 files
First-parent comparison
M src/browser/ui/ReactComponentBrowserEnvironment.js ModifiedM src/browser/ui/ReactDOMComponent.js ModifiedM src/browser/ui/ReactDOMIDOperations.js ModifiedM src/browser/ui/ReactDOMTextComponent.js ModifiedM src/browser/ui/ReactDefaultInjection.js ModifiedM src/browser/ui/ReactInjection.js ModifiedM src/core/ReactComponent.js ModifiedA src/core/ReactComponentEnvironment.js AddedM src/core/ReactCompositeComponent.js ModifiedM src/core/ReactMultiChild.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…