
Pinia | The intuitive store for Vue.js
Pinia The intuitive store for Vue.js Type Safe, Extensible, and Modular by design. Forget you are even using a store.
简介 | Pinia
May 20, 2024 · Pinia 起始 于 2019 年 11 月左右的一次实验,其目的是设计一个拥有 组合式 API 的 Vue 状态管理库。从那时起,我们就倾向于同时支持 Vue 2 和 Vue 3,并且不强制要求开发者使用组合 …
Introduction | Pinia
Pinia started as an experiment to redesign what a Store for Vue could look like with the Composition API around November 2019. Since then, the initial principles have remained the same and Vue 2 support …
Defining a Store | Pinia
Before diving into core concepts, we need to know that a store is defined using defineStore() and that it requires a unique name, passed as the first argument:
Pinia | The intuitive store for Vue.js
值得你喜欢的 Vue Store Pinia 符合直觉的 Vue.js 状态管理库 类型安全、可扩展性以及模块化设计。 甚至让你忘记正在使用的是一个状态库。
State | Pinia
State Master this and much more with the official video course by the author of Pinia The state is, most of the time, the central part of your store. People often start by defining the state that represents their …
Getting Started | Pinia
Getting Started Installation Get the Pinia Cheat Sheet from Vue Mastery Install pinia with your favorite package manager:
开始 | Pinia
May 20, 2024 · 在 Vue 2 中,Pinia 使用的是 Vuex 的现有接口 (因此不能与 Vuex 一起使用) 。 Store 是什么? Store (如 Pinia) 是一个保存状态和业务逻辑的实体,它并不与你的组件树绑定。 换句话说, …
Plugins | Pinia
Plugins are added to the pinia instance with pinia.use(). The simplest example is adding a static property to all stores by returning an object:
Getters | Pinia
Learn how to define and use getters in Pinia, a type-safe and flexible store for Vue applications.