You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Obviously I can change my route (and am doing so for the time being), but I wondered if something else could be done, and thought of three possibilities:
Add an optional sort order causing .when to insert into the route array at the appropriate place
Have a .else (or .elsewhen) which has an implicit sort order between .when and .otherwise
Once the route has been matched carry on matching looking for a 'better' match (a regex with less variables). I think it may be possible to automatically insert general routes below less general routes that they would match (but I haven't worked on it).
I could work on a PR if this was deemed to be worthwhile and there was some guidance about which option (if any) was preferred.