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.
Pinia Colada Cache and Stale While Revalidate (SWR)
In this lesson, learn how the useQuery key enables powerful but easy to use caching for async data across multiple calls to the composable.
Not only does it provide caching to save on network requests but it also uses the “Stale While Revalidate” technique for displaying stale data while requests for new data are pending. This makes for apps that have greater perceived performance (they feel snappier!).
Links
