Cached & persisted queries (react native)
I'm using react-query w/ async-storage, the cache persists and everything is working correctly except that on failed "refetch(es)" the data in cache seems to get deleted/swapped, here's what I tried to keep the cache even on failures:
Failed attempts
1:
2:
3. Tried both initialData & placeholderData, does NOT work
What worked
This works fine but now
isError will never work which'll result in bad UX.
I went thru the docs/API but couldn't find anything related, I think I'm missing something here, thanks in advance.1 Reply
stormy-goldOP•7mo ago
Solved it