T
TanStack•3y ago
exotic-emerald

prefetchQuerys like useQueries

I want to be able to prepare my app to have some information available when the user goes offline. My app has tickets and for each ticket details... ... I would like to make a prefetch of some ticket details, to save this information in the cache and use it offline. This can be done with an array of prefetchQuerys just like useQueries.
No description
No description
2 Replies
genetic-orange
genetic-orange•3y ago
Unlike useQuery, you can call prefetchQuery in a loop because it's not a hook
exotic-emerald
exotic-emeraldOP•3y ago
True, thanks 🙂

Did you find this page helpful?