Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

Vue.js 3 Options API Masterclass

Unsubscribing from the Auth User Snapshot thumbnail image

Get access to the most comprehensive Vue.js video library in the world. Over 300 video lessons including the newest Vue 3 features.

Unsubscribing from the Auth User Snapshot

🚧 PLEASE NOTE: This masterclass is built with the Options API
vuejs-masterclass

The Composition API Masterclass is out!

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.