What are production quality router options for the mobx-state-tree
-based web-apps?
#1721
Replies: 5 comments 4 replies
-
My thoughts that
cc @mweststrate @kitze @ryanflorence would really appreciate your opinion if you have a few min. |
Beta Was this translation helpful? Give feedback.
-
See also https://nareshbhatia.github.io/mobx-state-router/ /
https://github.com/miles-till/mobx-state-tree-router. No personal
experience with any of them.
…On Fri, May 21, 2021 at 11:49 AM Sergey Volynkin ***@***.***> wrote:
My thoughts that
1. kitze/mobx-router <https://github.com/kitze/mobx-router> Is an
interesting candidate
- Cons:
- there is a lack of documentation on how to use
kitze/mobx-router <https://github.com/kitze/mobx-router> + mobx-state-tree
<https://github.com/mobxjs/mobx-state-tree> together
2. react-router <https://github.com/ReactTraining/react-router>
should be a robust solution that most of the FE devs know & used before
- Cons:
- As far as I'm concerned it's not easy (possible?) to separate
data-fetching from component lifecycle methods (e.g. like
kitze/mobx-router <https://github.com/kitze/mobx-router> allows
with beforeEnter: () => {…})
cc @mweststrate <https://github.com/mweststrate> @kitze
<https://github.com/kitze> @ryanflorence <https://github.com/ryanflorence>
would really appreciate your opinion if you have a few min.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1721 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAN4NBBUIKU6SD2UPSFKGSDTOY3B7ANCNFSM45I4G6AQ>
.
|
Beta Was this translation helpful? Give feedback.
-
@nareshbhatia if you have a few minutes, may I ask for your recommendations on the topic? |
Beta Was this translation helpful? Give feedback.
-
Michel's blogpost How to decouple state and UI is still a favorite of mine all these years later. It outlines how to invert the concern you have with React Router with vanilla MobX, but it's straightforward to migrate the concepts to MST. |
Beta Was this translation helpful? Give feedback.
-
Hi, i used https://github.com/alisd23/mst-react-router |
Beta Was this translation helpful? Give feedback.
-
Greetings,
I've searched over the internet and didn't get a good understanding / didn't find good suggestions on what routing library should be a good fit for the
mobx-state-tree
-based web-appsMaybe someone from the MST community can share their production experience?
Beta Was this translation helpful? Give feedback.
All reactions