-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Weird bug since 3.x #763
Comments
Could you check whether the bug already occurs in |
Thanks for the quick reply! I installed With |
Hmm... that means it relates to how mobx is bundled, and that mobx is most probably bundled twice into your application. Could you verify that, or share your setup? Ideally complete project but package.json and bundler config could be a start. |
You pointed me in the right direction, I analysed my exported modules with Thank you so much for the help and for maintaining such a great project! |
Hi all!
I'm writing this post after searching through the github's past issues and doing some tests myself but failing to resolve my issue.
Here are the facts: I migrated my project from MobX 2.7 to MobX 3, all my tests are passing but there's something strange happening. In my page I have two modules exported by webpack, the
app
module and another one calledutils
, it instantiates an error logger and an internal clock, a mobx observable object with two computed properties that gets updated every 100ms, declared like so:The
app
module receives the clock in its factory and it uses it for doing some stuff, like creating a widget with a countdown. Everything was working with version 2.7 but now the countdown widget is not getting updated anymore.I investigated a bit and I made a test, letting the
utils
module exporting this:while the
app
module exports this:In my html I wrote this:
The surprising thing is that the
utils
'sautorun
runs every 100ms as expected while theapp
's one not.Am I doing something wrong? If you need more insights please tell me. Thanks!!
The text was updated successfully, but these errors were encountered: