T
TanStack•3y ago
passive-yellow

setQueryData with exact option

I would like to use setQueryData with an option exact. For example I have a key 123 that can have multiple variants 123-A, 123-B etc. and I would like to update all keys that contain 123. Is that in any way possible?
4 Replies
passive-yellow
passive-yellowOP•3y ago
Im not using queryClient.getQueryCache().getAll() and looping through the keys, not sure if thats the best solution
fascinating-indigo
fascinating-indigo•3y ago
passive-yellow
passive-yellowOP•3y ago
Nice. Thank you
fascinating-indigo
fascinating-indigo•3y ago
No problem :reactquery:

Did you find this page helpful?