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 for flutter web - observables only update after hot reload #848

Open
DiegoVega19 opened this issue Jul 29, 2022 · 2 comments
Open

Mobx for flutter web - observables only update after hot reload #848

DiegoVega19 opened this issue Jul 29, 2022 · 2 comments

Comments

@DiegoVega19
Copy link

I am using the latest version of mobx, on mobile it works correctly, but on the web version my data is not updated until I do hot reload, what could be causing it?

@DiegoVega19 DiegoVega19 changed the title Mobx web observables only update after hot reload Mobx for flutter web - observables only update after hot reload Jul 29, 2022
@snaeji
Copy link

snaeji commented Aug 4, 2022

This could possibly help you out.

Add this dependency in your pubspec.yaml

  # This plugin has issues, lower flutter_mobx dependency to version: "2.0.7+2"
  flutter_mobx: ^2.0.6+1
  mobx: 2.0.7+2

There is a problem with the mobx package that flutter_mobx depensds on, so lowering the dependancy manualli fixes it.

@dafinoer
Copy link

I am using the latest version of mobx, on mobile it works correctly, but on the web version my data is not updated until I do hot reload, what could be causing it?

can you share the code about your issue?

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

3 participants