The useCurrentRoute Hook

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 hrefquery, and hash.
  • views: Contains an array of components or elements that will be rendered in the route's view.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.216.230.107