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

Vue.js 3 Options API Masterclass

Fetching App-Wide Data 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.

Fetching App-Wide Data

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

The Composition API Masterclass is coming soon!

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.