Refetch on changing persister buster
I am using a local storage persister with a maxage and a buster. When the data is initially fetched, it goes into the persister and reloading the page retrieves it from storage fine.
The issue is when the persister buster is changed (e.g. version change), it resets the local storage data to empty, but useQuery just happily reads out this empty data, instead of detecting that its been cleared and refetching from fresh.
I'm assuming the same thing will happen when the persister reaches maxAge as well. How can i make the query refetch when the persister storage is expired?
The issue is when the persister buster is changed (e.g. version change), it resets the local storage data to empty, but useQuery just happily reads out this empty data, instead of detecting that its been cleared and refetching from fresh.
I'm assuming the same thing will happen when the persister reaches maxAge as well. How can i make the query refetch when the persister storage is expired?