Is IronRouter really dead?

Everybody says ironrouter is dead and we all have to use flowrouter. But what say the number?

6 Likes

Iā€™m still using it two appsā€¦ the last one is just using it for routing though. All others are using FlowRouter because of the flexibility and minimalism. It still works though!

Iā€™m using it in one production app, plus the one iā€™m currently working on.
Mainly becuase Meteoric(Ionic for blaze) is bound to it.

And I donā€™t want to use it anymore ā€¦ never! :wink: I love Flow Router, its simplicity and clear purpose. Also all that stuff around it. Why we need Iron Router today? I think it is dead, but old and everywhere, so itā€™s still popular. I hope official Meteor Guide will change it.

Not only is it not completely dead, but it got officially forked into the clinical:METEOR track, and will be available via clinical:router. Just run the following:

meteor add clinical:router

I hate adding support maintenance load to the project, but we needed a) route prefix support via the ROOT_URL environment variable, and b) to standardize on the router weā€™re using. So, weā€™re picking up minor support and maintenance of the project.

As far as future maintenance goes, weā€™re probably going to:

  • deprecate anything to do with subscriptions and the waitOn() function
  • migrate whatever syntax we can towards FlowRouter syntax, as possible, to minimize refactoring steps
  • patch whatever is needed to publish the clinical track
3 Likes

What I would like to do with iron:router is to make iron:layout a weak depencency and adding the default action handler to iron:router based on which layout package is available in the app.

I also want to remove implicit computations on all hooks/actions and have the context of these functions have this.autorun as onRendered to midigate the ā€œproblemā€ with to much reactivity within router logic.

Another thing Iā€™ve been thinking about with iron:router is to try and add finer grained access to params, query params, route name and path.

Only reason I havenā€™t started on this is my lack of time between my work at Hansoft, my current packages and ā€œreal lifeā€.

Actually, itā€™s hard to compare. IR is kind so popular on the popular meteor tutorials, courses.

But anyway, if IR works best for someone, there is no need to worry about anything else. We still have some apps which use IR.

1 Like

Adding subscriptions in my app at the route level is probably one of the worst decisions Iā€™ve ever made (why make my app modular when I could tightly couple everything?). Kudos to this change.

Itā€™s still on my backlog to transition to flow:router, will get there soon enough.

2 Likes

I still use it. IR works fine if you know the dos and donā€™ts. (also waitOn is not evil, just donā€™t abuse it)

i have code router use iron router ā€¦try my code :smile:
Router.route(ā€™/users/:usernameā€™,{
name: ā€˜userProfileā€™,
waitOn: function(){
Meteor.subscribe(ā€˜friendRequestsā€™);
},
data:function(){
return {
user: Meteor.users.findOne({ username: this.params.username })
};
}
});

i donā€™t think it has to be deadā€¦ there are some pieces that definitely need to be rewritten, and some of the useful features from FR could be imported

part of the problem is that lots of people are filing issues but few are actually submitting complete, tested solutions

No one will update the Iron Router or fix the bugs, even its creator. Stop being blind and use Flow Router in all your future projects, it is much better, stable and its support is awesome.

So, the answer is Yes.

2 Likes

i donā€™t think thereā€™s any reason to take that toneā€¦ you wonā€™t, but that doesnā€™t mean no one will

I have a production application running on IR, but it hasnā€™t been updated in a while: still running Meteor 0.8 I think. I started a new project with FlowRouter and I like it. Took me a bit to get used to the new template-based subscription pattern, but Iā€™m better off for it as it is a much cleaner approach and FR sticks to doing the only thing a router should do: route.

My new app seems to perform much better on FR and I donā€™t get those weird, nearly untraceable behaviors that would get using IR.

@chrisbutler did you become the new maintainer? I see you are the one who did some fixes on it last month?

1 Like

I am trying to keep it up to date!

1 Like

ok interesting to see that, did not see any announcement on it. Good work for the community!