Can i cancel a queued mutation somehow?
I have react native project where i use persistqueryClient. I have one mutation that saves user progress as user flips through pages. When the app goes offline i optimistcally update another query that should return the progress from server. The queries themselves work correctly but when when the app comes back online all the mutations for the page flipping will fire. Id only like to fire the last one. So far ive tried queryClient.invalidateQueries and invalidate the mutation keys, tried cancelQueries but the mutations seem to always fire anyway.
0 Replies