T
TanStack2y ago
optimistic-gold

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
sensitive-blue
sensitive-blue2y ago
Do you have any code to show for this?
optimistic-gold
optimistic-goldOP2y 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?