[VUE | Inertia.js]Location route uri #508
Unanswered
talelmishali
asked this question in
Q&A
Replies: 1 comment
-
I've actually run into this same issue on client projects 😅 in the end I just left one reference to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey!
I am looking to pull a route URI to determine an active menu state. Is there an easy way to pull the URI from the route function?
My problem with
route().current()
is that I am usinginertia
and without a full page reload thecurrent()
function is not working as it is not reactive, maybe anyone has a simple solution that I am missing?One way that just feels a bit hacky is:
Another way when is just to share the route name with the default props.
My navigation structure in the nav component looks like that:
Beta Was this translation helpful? Give feedback.
All reactions