useRoute()
useRoute() returns the current normalized Horn route location.
const route = useRoute()
Useful fields
pathfullPathparamsqueryhashmatched
Notes
pathis the concrete current pathnamematchedcontains the active matched route records- route ids inside
matchedcome from generated Horn route registries
Use useRoute() when you need read-only route state inside components.