Closed rdgco closed 3 years ago
Hi @rdgco I just published a version 1.0.0 of mobx-router that should have support for mobx-6. Seems I forgot to push it to the master branch though :(
Hi @thdk, sounds good. Is there a PR? I'd be interested to compare and learn.
Hi @rdgco I just published a version 1.0.0 of mobx-router that should have support for mobx-6. Seems I forgot to push it to the master branch though :(
Hi @thdk, sounds good. Is there a PR? I'd be interested to compare and learn.
Hi @rdgco I just published a version 1.0.0 of mobx-router that should have support for mobx-6. Seems I forgot to push it to the master branch though :(
See the latest commit on the master branch 4fafdb4286f12eaef11700624567ad378aab0dc1.
Unfortunately it contains also linting and formatting changes (my bad) so its a bit ugly.
I mainly followed the mobx upgrade guide with the additional remarks for typescript projects.
Let me know if anything is unclear or does not work as expected.
This is attempt number 1 at upgrading mobx-router to the latest default conventions for mobx. This is working fine for me using mobx 6.3.3 and react 17, but my usage and testing may be limited.
The latest default mobx configuration removes all usage of annotations for observable, observer, computed, and actions. This is replaced by either wrapping functions with the function call or calling makeObservable in a class constructor.
This addresses the issues brought up here: https://github.com/kitze/mobx-router/issues/106.