Skip to content
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

[mobx] Warning: there are multiple mobx instances active #3093

Closed
Symous opened this issue Jun 23, 2018 · 6 comments
Closed

[mobx] Warning: there are multiple mobx instances active #3093

Symous opened this issue Jun 23, 2018 · 6 comments

Comments

@Symous
Copy link
Contributor

Symous commented Jun 23, 2018

Version

Tell us which versions you are using:

  • react-native-router-flux: 4.0.0-beta.31

  • react-native: 0.45.1

  • my own mobx/mobx-react: 3.2.2/4.2.2

Description

I already have integer mobx in my application before. after I upgrade my react-native-router-flux from v3.x to v4.0 , I see this waring : there are multiple mobx instances active , but it seems like that have not bring any influence to my application . but please how can I fix this ? thanks.

Steps to reproduce

  1. install react-native-router-flux v3.x to a application that already installed mobx;
  2. upgrade the react-native-router-flux to v4.0

related issue: #2155

@maxence-machu
Copy link

Same here

@Hypothesis-github
Copy link

I looked into this issue, and the only way around it is to not use react-native-router-flux and find an alternative apparently

@McMainsLiam
Copy link

McMainsLiam commented Jun 28, 2018

I'm having the same problem. Would love to see this issue addressed.

Currently using versions:
"mobx": "^5.0.3",
"mobx-react": "^5.2.3",
"react-native-router-flux": "^4.0.0-beta.31"

Any help would be appreciated! Thank you!

EDIT:
I fixed the problem by reverting my mobx and mobx-react versions to the same versions that react-native-router-flux uses. Currently these are:
"mobx": "4.1.1",
"mobx-react": "5.0.0"

Removing the ^ symbol in front of the version number will keep mobx and mobx-react from automatically updating to the next major version.

Hope this helps someone!

@catherinetcai
Copy link

If you're using yarn, you can follow this, which resolved my issue.

Also beta.32 apparently resolves this issue: #3100

@aksonov
Copy link
Owner

aksonov commented Aug 8, 2018

Latest version doesn't use mobx, closing it

@aksonov aksonov closed this as completed Aug 8, 2018
@veereshamma
Copy link

[mobx] Warning: there are multiple mobx instances active #3093
versions
react": "16.9.32
mobx-react": "6.1.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants