Repeat after me: 馃摑Invalidation does not remove cached data Generally, @tan_stack React Query only ever removes data from your cache for garbage collection, or if you manually remove it (with removeQueries). Invalidation just marks it as stale so that we can refetch it.
12
23
351
24,882
Does "refetch" here mean retrieve from cache or re-run query if necessary? To me word "fetch" usually implies an API or any external call so this statement confuses me a bit 馃槄
1
3
1,192
Yes, refetch means the queryFn runs again.

Oct 31, 2024 路 6:58 PM UTC

1
4
861
Sort replies: Relevant Recent Liked
Replying to @TkDodo @tan_stack
Thanks for clarifying
2
259