T
TanStack2y ago
quickest-silver

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
conscious-sapphire
conscious-sapphire2y ago
Do you have any code to show for this?
quickest-silver
quickest-silverOP2y 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?