silent invalidateQueries #7281
Unanswered
islamBelabbes
asked this question in
Q&A
Replies: 1 comment 1 reply
-
edit : this issue only happens when I have initialdata |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hey,
I have some posts list that each has a ( like or dislike ) mutation, and I use queryClient.invalidateQueries to handle an optimistic update.
At the same time, I use a category list to filter based on category.
(change query key on category click )
now when I invalidate queries
this result isFetching to be true each time I like or dislike, therefore, the loading will show.
the only idea that comes to mind now is doing setQueryData
but is there a way to exclude the loader when invalidateQueries? ( maybe doing a silence refresh )
Beta Was this translation helpful? Give feedback.
All reactions