Intro To Using Pinia For State Management In VueJS
#vuejs #pinia #vuex
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
What’s Covered
- This is a simple application that allows you to add students to an 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.
Links
- Source Code: GitHub - aaronksaunders/vite-pinia
- Doc: https://pinia.esm.dev/