Using Pinia
Pinia is the official state management library for Vue. It provides a type-safe, extensible, and modular store with an intuitive API built on the Composition API.
See also: Vue.js — State Management
Installation
Setup
Register Pinia with your vue-lynx app:
src/index.ts
Defining a Store
Use defineStore with the setup syntax to create a store:
src/stores/counter.ts
Using the Store in a Component
src/CounterSection.vue
See Pinia — Core Concepts for additional resources.