Intro To Using Pinia For State Management In VueJS

Aaron K Saunders - Nov 24 '21 - - Dev Community

Intro To Using Pinia For State Management In VueJS

Pinia - The Vue Store that you will enjoy using... Intuitive, type safe, and flexible Store for Vue

I guess this is the new goto for state management in Vue3 and what is really awesome is that it works great with vue-devtools

This is a simple application that allows you to add students to and array that is managed in the global store and then perform the traditional CRUD actions against the store.

We show how to subscribe to changes in the store for updating the user interface

We discuss some of the benefits of this approach and its integration of typescript and how great it works with the vue-devtools.

Source Code


ko-fi

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .