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.
Unsubscribing from the Auth User Snapshot
The Composition API Masterclass is coming soon!
Sign-up for the Vue.js Masterclass 2024 Edition.
In this lesson, we tidy up the authenticated user functionality by subscribing to it's snapshot for the entirety of the logged in session and only cleaning up the snapshot after the authentication state has changed. This can be accomplished by providing a callback function to the fetchItems action that is customized for the fetchAuthUser action.
