-
Notifications
You must be signed in to change notification settings - Fork 46.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove injectComponentTree from unstable-native-dependencies, add EventPluginHub #13598
Remove injectComponentTree from unstable-native-dependencies, add EventPluginHub #13598
Conversation
EventPluginHub injectComponentTree was exposed for react-native-web, but wasn't actually being used by the project. They were using EventPluginHub through ReactDOM's secret internals, but that was removed in facebook#13539 This removes the unused injectComponentTree export, refactors the ResponderEventPlugin test so it doesn't depend on it, and also adds EventPluginHub to the exports to unbreak react-native-web
Details of bundled changes.Comparing: b87aabd...e9ade0f schedule
Generated by 🚫 dangerJS |
I think this might be insufficient because it's likely RNW actually needs |
I think you're right. In that case we can just add it back to ReactDOM secret internals, and re-export it? |
Yeah but that can increase the bundle size. At least let's just export the smallest unit we can (that method alone). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please test that this fixes RNW
2913463
to
e9ade0f
Compare
With these changes to React Native for Web I verified that the reproducing example from necolas/react-native-web#1096 no longer throws with a local build form this branch. I also verified the same with the examples application in the RNW repo. |
Coolio |
Should be fixed in 16.5.1 |
@aweary Great work! Could you make a pr with the changes to rnw? |
…ntPluginHub (facebook#13598) * Remove injectComponentTree from unstable-native-dependencies, add EventPluginHub injectComponentTree was exposed for react-native-web, but wasn't actually being used by the project. They were using EventPluginHub through ReactDOM's secret internals, but that was removed in facebook#13539 This removes the unused injectComponentTree export, refactors the ResponderEventPlugin test so it doesn't depend on it, and also adds EventPluginHub to the exports to unbreak react-native-web * Re-export injectEventPluginsByName from ReactDOM internals
…ntPluginHub (facebook#13598) * Remove injectComponentTree from unstable-native-dependencies, add EventPluginHub injectComponentTree was exposed for react-native-web, but wasn't actually being used by the project. They were using EventPluginHub through ReactDOM's secret internals, but that was removed in facebook#13539 This removes the unused injectComponentTree export, refactors the ResponderEventPlugin test so it doesn't depend on it, and also adds EventPluginHub to the exports to unbreak react-native-web * Re-export injectEventPluginsByName from ReactDOM internals
Resolves #13589
injectComponentTree
was exposed for react-native-web, but wasn't actually being used by the project. There don't appear to be any call sites forinjectComponentTree
in www either (FB Internal).RNW is using
EventPluginHub
through ReactDOM's secret internals, but that was removed in #13539This removes the unused
injectComponentTree
export, refactors theResponderEventPlugin
test so it doesn't depend on it, and also addsEventPluginHub
to the exports to unbreak RNW with 16.5cc @necolas