I'm using the React Query framework. Would it be possible to have useQuery return the content of the cache for a resource that was previously fetched but now came back with a 4** or 5** http status?
The idea would be to avoid showing no data or errors when the network (or server) is flaky for a moment.