-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Multiple instances of Mobx in v4 #3100
Comments
Your version of react-native-router-flux The creator of mobx outlines the method for properly including mobx in code intended for shared libraries |
@aTable the latest is 4.0.0-beta.31, I cannot see 32 in the release list https://github.com/aksonov/react-native-router-flux/releases |
I guess it's an unofficial beta at this stage
|
If for some reason you don't feel like bumping the version, I was able to workaround this using yarn and resolutions, as outlined here. |
Latest version no longer uses mobx, closing it. |
I am using
and I have gotten the multiple instances since I was already using
mobx
in react native for routing.I tackled this ( or at least I think I tackled this) by the instruction provided by the author of react-native-router-flux, which is to search for duplication of
mobx
in modules, and sure there were 2 extra inreact-native-router-flux
's node module folder.package.json also contained a lower version of
mobx
andmobx-react
, I believe v3 or mobx.so I deleted both folders and the dependency in the package.json and refreshed.
the warning of multiple instances went away. but I have some concerns now.
Npm install
brings back both folders of mobx and mobx-react to the module folder of react-native-router-flux. How can I make sure these 2 dependencies will never come back since I deleted the line inreact-native-router-flux
's package.json as dependency but they still get installed afternpm install
.Why the
mobx
andmobx-react
exist in the module folder ofreact-native-router-flux
, and if of course they are handling some actions will they be interrupted because I have deleted the folders manually ?The text was updated successfully, but these errors were encountered: