make FlowRouter.go accept route names
See original GitHub issueI 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:
- Created 8 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
+1 for making the doc for this. Thank you!