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
Sometimes when I leave WEx open unattended for a while, the wells shows like this:
They will load and show correctly, but it ends up sending a call to the API for every well.
We are using Tanstack Query to cache our data, with a hook for fetching the whole list, and a hook for fetching individual wells (like when refreshing a single well). For some reason it seems like when leaving the page unattended, the data is either invalidated or garbage-collected. We preferably don't want to have to re-fetch the data at all unless manually refreshing the list. gcTime and staleTime is set to infinity for that reason. But if we have to re-fetch, it should at least fetch all the wells at once.
Possibly relevant files:
useGetWell.tsx
wellItem.tsx
useGetWells.tsx
router.tsx
sidebar.tsx
The text was updated successfully, but these errors were encountered:
Sometimes when I leave WEx open unattended for a while, the wells shows like this:
They will load and show correctly, but it ends up sending a call to the API for every well.
We are using Tanstack Query to cache our data, with a hook for fetching the whole list, and a hook for fetching individual wells (like when refreshing a single well). For some reason it seems like when leaving the page unattended, the data is either invalidated or garbage-collected. We preferably don't want to have to re-fetch the data at all unless manually refreshing the list. gcTime and staleTime is set to infinity for that reason. But if we have to re-fetch, it should at least fetch all the wells at once.
Possibly relevant files:
The text was updated successfully, but these errors were encountered: