The useCurrentRoute Hook has the following signature:
const route = useCurrentRoute()
It returns the latest non-busy route, which contains all information that Navi knows about the current page:
- data: Contains merged values from all data chunks.
- title: Contains the title value that should be set on document.title.
- url: Contains information about the current route, such as the href, query, and hash.
- views: Contains an array of components or elements that will be rendered in the route's view.