Weird behaviour with setQueriesData
I have a mutation that I want to use the setQueriesData feature. The behaviour I'm seeing, is that the query gets invalidated despite the fact that I'm setQueriesData is called, and not invalidateQueries. I've tried creating a reproduction but couldn't. Is there any reason why using setQueriesData would also invalidate the query?
The query involved is as follows:
And the mutation function is
The query involved is as follows:
And the mutation function is