This lesson is for members. Join us?
Subscribe now to get instant access to this course, plus a full library of Vue.js courses tailored to the plan you choose.
Invalidate a Query After a Mutation in Pinia Colada
In this lesson, learn how to invalidate a Pinia Colada query in the cache. Invalidating a query in the onSettled hook/event of useMuation is a great way to auto trigger a refetch of mutated data after updating it on the server. This serves to display the updated server data on the page after it’s changed.
Links
