Vue.js 3 Options API Masterclass
Plans from $25/month

This lesson is for members. Join us?

Subscribe now and get immediate access to this course, 30 more and all future Vue.js courses!

Creating Vuex Actions that Fetch Multiple Items from Cloud Firestore

When we're working with a data structure that has multiple resources grouped under one, it's very handy to have a Vuex action that can fetch multiple resources with one call.

In this lesson, we'll create that Vuex action, that given an array of post id's will fetch and return an array of the post objects from the Cloud Firestore. We'll then dispatch the action in the Vue.js created lifecycle hook to get the posts for the Forum page.