Returns a static object used for routing. This hook will never update, and is only used for imperatively controlling the router.
It takes no arguments and returns object of type:
You can display a different URL in the browser address bar while navigating to a specific route. This is useful for modals, side panels, or keeping URLs clean:
When users click back/forward, the actual route state is restored from history. This feature is web-only.
Edit this page on GitHub.