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
Is it possible to add a name to routes? It would be convenient to be able to supply a "name" property to each defined route, and have that be an accessible property on the location object.
The text was updated successfully, but these errors were encountered:
I just started dabbling with this lib, and the first thing I'm missing is exactly this.
I want to do stuff outside of the <Router /> depending on the the activeRoute. Yet i can't, at least not i a concise way.
What i would want is the the option, to
give a name: <Route name="home" />
obtain the activeRoute outside of <Router />
and from that have activeRoute.name in a fully controlled way
If found #185 which refers to the current Location-Object in the Browser, but that is not the ActiveRoute, just a string i then have to parse.
Then i found this: #171, which also asks for the activeRoute, but is links to #255, which ultimately refers to the somewhat new useLocation.
Sadly, useLocation is not usable outside and when used, it's just the Location-Object of the Browser again.
Is it possible to add a name to routes? It would be convenient to be able to supply a "name" property to each defined route, and have that be an accessible property on the location object.
The text was updated successfully, but these errors were encountered: