Using `navigate` in a providers handler before RouterProvider instance - TanStack