Simple play icon Course
Skills

Vue 3 State Management with Pinia

by Jim Cooper

This course will teach you how to manage application state in Vue applications using Pinia; Vue’s official state management library.

What you'll learn

Every modern web application needs to manage and store client-side application state and interact with the server via APIs. In this course, Vue 3 State Management with Pinia, you’ll learn how to manage application state in Vue applications using Pinia; Vue’s official state management library. First, you’ll learn about the two types of Pinia stores: Setup Stores and Options Stores. Then, you'll explore how to create a Pinia store and retrieve data, including calculated data, from the store. Next, you’ll discover how to use Pinia actions to populate store data including using asynchronous actions to integrate with external APIs for retrieving and storing data from a back-end server. After that, you'll learn how to create custom plugins for Pinia to easily add functionality to all of your stores, like storing data in a browser's LocalStorage, for example. Finally, you'll see how to do all of this with both Setup Stores and Options Stores as well as how to consume these stores from both composition API components and options API components. When you’re finished with this course, you’ll have the skills and knowledge of Pinia needed to create robust Vue applications with real-world state management requirements.

Table of contents

Course Overview
1min

About the author

Jim Cooper is a software developer at Pluralsight, with more than 20 years of software development experience. He has a passion for Agile processes, especially lean software development. Jim has been developing production Angular apps since before Angular version 1.0, including Pluralsight's first Html5-based video player. Jim has over 10 years of TDD and pair programming experience which has contributed significantly to his professional development. He has successfully mentored other developers... more

Ready to upskill? Get started