question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

make FlowRouter.go accept route names

See original GitHub issue

I think it would be a good idea if FlowRouter.go could accept route names as well as route paths. Using route names makes sure your code doesn’t break when you change the route path.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ilan-schemoulcommented, Nov 3, 2016

you should add it on the doc (I read the github doc and I never saw that), that’s a pity because I never appreciated put url instead of route name, it’s really not proper as the url are not always definitive.

0reactions
dominicarrojadocommented, Nov 3, 2016

+1 for making the doc for this. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

URLs and Routing - Meteor Guide
For instance, in the example app, when a user creates a new list, we want to route them to the list they just...
Read more >
How to pass variables to FlowRouter 'named routes'?
How do you pass the userId through to Users.edit name, instead of using the URI path. Incidentally, I read somewhere that FlowRouter doesn't ......
Read more >
flow-router/README.md at master - GitHub
As with all current route properties, these are not reactive, but can be combined with FlowRouter.watchPathChange() to get group names reactively.
Read more >
meteorhacks:flow-router - Packosphere
All these global subscriptions run on every route. So, pay special attention to names when registering subscriptions. After you've registered your subscriptions ...
Read more >
Meteor: Using Flow Router for authentication and permissions
Notice we're using FlowRouter.go('login') . Using route names makes your code more maintainable, because when you decide to change the path, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found