|
Hello! Thanks in advance! |
Answered by
TkDodo
Jul 16, 2021
Replies: 1 comment 23 replies
invalidation is a more "smart" refetching. Refetching will always refetch, even if there are no observers for the query. invalidation will just mark them as stale so that they refetch the next time an observer mounts. For queries with active observers, there is no difference as far as I'm aware. |
23 replies
Answer selected by
ytnytn1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
invalidation is a more "smart" refetching. Refetching will always refetch, even if there are no observers for the query. invalidation will just mark them as stale so that they refetch the next time an observer mounts. For queries with active observers, there is no difference as far as I'm aware.