You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think for the boilerplate, it makes to add default caching, like we do for mastopod now. Most apps aren't too time-critical, I suppose. We can leave a comment in the App.tsx file and set a small default.
What do you think?
constqueryClient=newQueryClient({defaultOptions: {queries: {refetchOnWindowFocus: false,staleTime: 1*60*1000,// Consider data fresh for 1 minutescacheTime: 30*60*1000,// Cache unused data for 30 minutes.retry: 3,},},});
The text was updated successfully, but these errors were encountered:
I think for the boilerplate, it makes to add default caching, like we do for mastopod now. Most apps aren't too time-critical, I suppose. We can leave a comment in the
App.tsx
file and set a small default.What do you think?
The text was updated successfully, but these errors were encountered: