TanStackT
TanStack2y ago
3 replies
worthy-rose

Router.status is always "pending" when you wrap the `RouterProvider` in `StrictMode`.

I noticed that if you wrap the RouterProvider in React.StrictMode, the status of the Router will always be "pending". This also happens with the "basic-file-based" example on GitHub (https://github.com/tanstack/router/tree/main/examples/react/basic-file-based). Is this correct behavior?

Due to this issue, you can never get the correct resolvedLocation, because this will always return the first location you visited.
Was this page helpful?