Happy 2018 friends! I’m starting a new side project after being “away” for a year or so (by day I sling bits in C on microcontrollers)… Lots has happened in Meteor land in the mean time!
Last I checked in, flow-router was The Blessed Way from MDG. It’s the only router currently listed in the Meteor Guide. But it seems after Kadira folded, the Meteor Routing Guide is kicking back a 503?
Then there’s fine-router?
The project I’m starting will be small-scale and use Blaze templates. Since it’s a side thing with a narrow intended audience, PITA-factor and maintainability are more important than performance or scalability.
If you’re sticking with Blaze, then Flow Router would still be the way to go. Iron Router has some anti patterns that are best to avoid (for example managing subscriptions on the router level which is not a good idea) and has fallen behind further in maintenance at this point.
If you’re feeling adventurous though, I’d recommend to have a quick look at Vue. The learning curve coming from Blaze is minimal once you get past the first day or two settings things up, development experience is very pleasant and questions like routing are already solved for you out of the box.
Rather, Iron Rather allows some anti-patterns; you don’t have to follow them. It works just fine as a simple router with Blaze for 1.6, but it’s probably a bit bloated (e.g. with unnecessary code that allows said anti-patterns).
I’d say go with Flow Router if you’re using Blaze.
I did see the prior (albeit very brief) Oct-17 thread on Flow-vs-Iron, but it didn’t address the concern I articulated in the OP: that the canonical flow-router code base is abandoned and the MRG is no longer available.
I don’t think it’s unreasonable to have some concern about basing a core piece of app functionality on a codebase that’s no longer maintained. Thankfully, @vooteles and @cyardimici provided constructive, helpful answers!
I added in flow-router-extra to my app over the weekend - so far so good! Your added context here has definitely improved my confidence in that direction…
I’ve never understood the hostility towards iron router. None of the reasons that people have posted for switching to flow router ever made genuine sense to me.
We’ve been happily using iron router in our webapp since early 2015 and continue to do so.
Still using iron:router in that app because I figured out that dynamic loading works just as well. Here is a route that pulls in the required files asynchronously
No difficulties. Which router to choose depends on your needs. In new Blaze projects I usually use FlowRouter Extra or a router for the front-end chosen (vue-router, svelte-router, …)