T
TanStack15mo ago
sensitive-blue

How to do the Optmistic Update?

I'm trying to do the optmistic update . In my queryKey I'm using a page state, should I use it in getQueryData as well? Another thing, in my response I get an object with the pagination and an array with the data, how can I do the optimistic update under these conditions?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?