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?
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?
