3 ms·
I tried router5 in our team and found that while it is more powerful, 1. Having to write middleware for many things is quite hard for junior devs, as it requir
by whs 8y ago
I tried router5 in our team and found that while it is more powerful,
1. Having to write middleware for many things is quite hard for junior devs, as it requires deep understanding of how router works. (We have middleware for dependency injection, MobX per-page store, data fetching, auth check)
2. Due to the tree-based router design, some routes are impossible. See https://github.com/troch/route-node/issues/17 https://github.com/troch/route-node/issues/17 https://github.com/troch/route-node/issues/18 https://github.com/troch/route-node/issues/18
I still haven't found router of my choice yet. Maybe router5 without route-note could work for me, but I still wouldn't recommend it to any team.