TanStackT
TanStack10mo ago
2 replies
moderate-tomato

Precautions I should have when using Router + Query?

Hi everyone,

I have a project that uses TanStack Query and React Router, with all my network calls going through Query.

I'm currently migrating to TanStack Router and following the documentation. During this process, I came across createRootRouteWithContext as opposed to createRootRoute, but I'm not sure about the differences or when I should use one versus the other.

This also makes me wonder if there are any other details I could be missing when doing such a migration.

Are there any specific considerations I should keep in mind for a smooth transition from React Router to TanStack Router?

Thanks in advance for your help! :tanstack:
Was this page helpful?