Routing priority broken
See original GitHub issuePreviously, when a match is found, no other routes are triggered. Now multiple routes are firing.
I noticed this updating from riot 2.3.18 -> 2.5.0. It appears to be caused by changes in riot observable, because it works correctly if I roll that back. Nothing in this route repo has changed in a while.
Example:
route('/post/*.amp.html', function() { /* */ })
route('/post/*', function() { /* */ })
Given the url: /post/title-of-my-post
The expected result is for the second route to trigger.
The actual result is both get triggered, and also appears to be a race condition of which one gets triggered first.
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Trouble with understanding routing priority - Stack Overflow
This is against my understanding of routes, I thought a route consists of a 3-tuple: HTTP-Method, Request Path, Call definition ... and as...
Read more >Spanning Tree routing priority not being followed | Ubiquiti Community
I'm trying to get it to have the path idle (blocked) between Switch 4 and 1, until something upstream is broken and needs...
Read more >Routing priority issue - MikroTik - Forum
Mangle on Forward happen after Routing decision. Is perfectly normal the behaviour that what is done on Routing can be replaced on Mangle....
Read more >Solved: why isn't routing broken? - Cisco Community
When the only route to the destination is the default route,there is no specific route for that destination in the routing tale, the...
Read more >Spanning Tree routing priority not being followed (at full speed)
Data is failing over and rerouting properly based on the connection, so that part is working. It is just breaking my primary connection...
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
@artstar no we are removing the fat from riot and events namespacing was causing performance issues and other several issues in the router. If you want to use this feature i guess you can do it with probably 10 lines of code in a mixin. Let me know if you need help
So good feature was removed:( Are there any plans to add event namespacing back?