-
Notifications
You must be signed in to change notification settings - Fork 888
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[labs/router] Make the current route field public #2512
Comments
Similar remark re current params There might be scenario where you would like to access it. For instance, checking parameters from _parentRoutes in nested route scenario. |
There is a getter for params, Routes#params. |
Ouups ; ) |
Any news here? We also need the current route. |
Definitely needed 😅 |
With |
Similar issue here where I am currently resorting to tracking the state myself and updating this state during the |
At the moment, the current route field is protected. Making it public would allow other components to check which route is currently active. A simple accessor akin to
Routes#params
would do.A use case example: navigation panel highlighting the currently active tab depending on the active route.
The text was updated successfully, but these errors were encountered: