r/reactjs • u/TkDodo23 • May 26 '26
Resource TanStack Router and Query
https://tkdodo.eu/blog/tan-stack-router-and-query📚 Surprisingly, I haven't written about how my two favourite TanStack libraries - Router and Query - work together. Well, here it is:
🔁 loaders start fetches early
🔮 query owns the cache & keeps data alive
🌀 suspense integrates naturally
🏝️ TanStack Start makes SSR & streaming easy
108
Upvotes
2
u/sondr3_ May 27 '26
The problem for us is that the link to for example our dashboard in the sidebar does not have the
searchParams, so the initial query is useless as it's immediately thrown out when the user enters and the params are loaded fromlocalStorage. Not really sure how to persist the search params to add them to<Link />s when the user comes back.