setData doesn't update state
I want to replace query invalidation with an update of the query cache to make my application react quicker. My understanding is that I use the setData method to update the query cache on success of the mutation. I've done so here:
The console logged newData looks exactly like I want it to. However the website doesn't update. It still shows oldData.
What am I doing wrong?
2 Replies
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
That was it. Thanks for your reply 🙂