Replies: 1 comment 2 replies
-
You have to be more precise please. Talking about "app" - is this react native? How is data still there after you "killed the app"? So you use persisters? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Version: 4.2.3
Scenario: Use
useQuery
to fetch some data with infinite stale and cache time.queryFn
from this moment onwards always errors out.queryFn
is triggered withuseQuery
on mount). Data is served from cache as there is an error in thequeryFn
. Triggeringrefetch
also serves cached data.undefined
Question - After Step 3, somehow the cached data was invalidated even though the stale time was set to
Infinity
. Why is the cache data not being served from 2nd app restart and when is the cache data getting invalidated?(I tried to get around the problem/behavior by using
initialData
andinitialDataUpdatedAt
but was not able to make it work.)Beta Was this translation helpful? Give feedback.
All reactions