T
TanStack2y ago
deep-jade

Vue does not update the UI after the queryClient.setQueryData() call...

In the devtools cache, the value is being updated right away... Would someone know what is causing Vue's reactivity to break?
2 Replies
like-gold
like-gold2y ago
Do you have any code to show for this?
deep-jade
deep-jadeOP2y ago
sorry, I screwed up; my code would update the cache (I spread the array of objects) but wouldn't update the single record (because I wouldn't spread the object) when calling queryClient.setQueryData() so 100% my fault 🤦‍♂️ 🐒

Did you find this page helpful?