Tanstakc query worth for my usecase?
For my work i pretty much make alot of single "portals/webpage" which has nothing to do with other pages. Right now ive been using tanstack router and lazy load every page as every page is not supposed to be connected to anything else. But im making right decision in not using query right? Or will i get any benefits of it
2 Replies
solid-orange•10mo ago
Your using the loaders in router right?
I'd say if you find it powerful enough you can skip query. If I find it have api calls made from multiple pages then query becomes useful
solid-orange•10mo ago
Query is easy enough to get started with once you want/need to make the switch. See https://tanstack.com/router/latest/docs/framework/react/guide/external-data-loading
External Data Loading | TanStack Router React Docs
[!IMPORTANT] This guide is geared towards external state management libraries and their integration with TanStack Router for data fetching, ssr, hydration/dehydration and streaming. If you haven't rea...