nareshbhatia / mobx-state-router

MobX-powered router for React apps
https://nareshbhatia.github.io/mobx-state-router/
MIT License
227 stars 31 forks source link

Error when MobX strict-mode is enabled #110

Closed ARMEGO closed 1 year ago

ARMEGO commented 3 years ago

After adding MobX strict-mode configuration as mentioned in this configuration an error is thrown in the UI as under:

Unhandled Rejection (Error): [mobx] Since strict-mode is enabled, changing observed observable values outside actions is not allowed. Please wrap the code in anactionif this change is intended. Tried to modify: RouterStore@1.isTransitioning

nareshbhatia commented 3 years ago

Which version of mobx-state-router are you using? Have you tried this with version 6.0.0-beta.1?

armego-philips commented 3 years ago

I'm using version "^4.0.6". No, I haven't tried the beta version.

ARMEGO commented 1 year ago

This particular issue is fixed in version 6. Thanks.