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

Pinia: The Enjoyable Vue Store

Synchronous and Asynchronous Actions in Pinia

In this lesson, we learn how to use a Pinia action to mutate the store’s state. In doing so, we also observe a common pattern in Vue.js applications where data is fetched asyncronously from an API and then used to fill the store.