About 232 results
Open links in new tab
  1. 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.

  2. Introduction | Pinia

    The official course for Pinia is Mastering Pinia. Written by Pinia's author, it covers everything from the basics to advanced topics like plugins, testing, and server-side rendering.

  3. Getting Started | Pinia

    What is a Store? A Store (like Pinia) is an entity holding state and business logic that isn't bound to your Component tree. In other words, it hosts global state. It's a bit like a component that is always there …

  4. State | Pinia

    You don't need to do much in order to make your state compatible with TS: make sure strict, or at the very least, noImplicitThis, is enabled and Pinia will infer the type of your state automatically!

  5. Defining a Store | Pinia

    You can define as many stores as you want and you should define each store in a different file to get the most out of Pinia (like automatically allowing your bundler to code split and providing TypeScript …

  6. 简介 | Pinia

    May 20, 2024 · Pinia 的官方课程是 Mastering Pinia。 由 Pinia 的作者编写,它涵盖了从基础知识到诸如插件、测试和服务器端渲染之类的高级主题。

  7. 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:

  8. 开始 | Pinia

    May 20, 2024 · 在 Vue 2 中,Pinia 使用的是 Vuex 的现有接口 (因此不能与 Vuex 一起使用) 。 Store 是什么? Store (如 Pinia) 是一个保存状态和业务逻辑的实体,它并不与你的组件树绑定。 换句话说, …

  9. 定义 Store | Pinia

    May 20, 2024 · 你可以定义任意多的 store,但为了让使用 pinia 的益处最大化 (比如允许构建工具自动进行代码分割以及 TypeScript 推断), 你应该在不同的文件中去定义 store。 一旦 store 被实例化,你 …

  10. Getters | Pinia

    With setup() While Composition API is not for everyone, the setup() hook can make using Pinia easier to work with in the Options API. No extra map helper functions needed!