useQuery/useInfiniteQuery caches data but refetch it #4709
Unanswered
andrii-pavlykivskyi
asked this question in
Q&A
Replies: 1 comment
-
that's because |
Beta Was this translation helpful? Give feedback.
0 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.
-
Hi, I faced the problem wih caching data using useQuery and useInfiniteQuery.
Requests depend on
typeFilter
and data is being updated when filter changed.If I choose filter, that has been already fetched it returns data immediately from the cache but http request is being sent as well.
Here is my code:
Beta Was this translation helpful? Give feedback.
All reactions