This lesson is for members. Join us?
Subscribe now and get immediate access to this course, 30 more and all future Vue.js courses!
Fetching App-Wide Data
The Composition API Masterclass is coming soon!
Sign-up for the Vue.js Masterclass 2024 Edition.
In this lesson, we learn how to fetch data that should be available across every page of a Vue.js application. The authenticated user should be available on every page since it's info is displayed in the navigation bar, therefore we can dispatch a call to the Firestore through a Vuex action in the created hook of the root App.vue component.