And run the app normally. Noticed in the TanStackRouterDevtools that the status of the Router is always "pending" and the resolvedLocation is never changed when navigating in the app.
Expected behavior
As a user I would expect that the status if the router is "idle" after navigation and resolvedLocation returns the current location
Describe the bug
If the
RouterProvider
is wrapped in<React.StrictMode>
, the status of the Router is alway "pending".Due to this issue, you can never get the correct resolvedLocation, because this will always return the first location you visited.
Your Example Website or App
https://github.com/TanStack/router/blob/main/examples/react/basic-file-based/
Steps to Reproduce the Bug or Issue
Change line 23 of
examples/react/basic-file-based/src/main.tsx
to:And run the app normally. Noticed in the TanStackRouterDevtools that the status of the Router is always "pending" and the resolvedLocation is never changed when navigating in the app.
Expected behavior
As a user I would expect that the status if the router is "idle" after navigation and resolvedLocation returns the current location
Screenshots or Videos
No response
Platform
Additional context
No response