Cookbook
- Migrating from Vuex ≤4: A migration guide for converting Vuex ≤4 projects.
- HMR: How to activate hot module replacement and improve the developer experience.
- Testing Stores (WIP): How to unit test Stores and mock them in component unit tests.
- Composing Stores: How to cross use multiple stores. e.g. using the user store in the cart store.
- Options API: How to use Pinia without the composition API, outside of
setup(). - VSCode Snippets: Useful snippets to speed up development with Pinia in VSCode.
- Migrating from v2 to v3: A migration guide for upgrading to Pinia v3.
- Migrating from 0.x (v1) to v2: A migration guide for upgrading to Pinia v2.
- Dealing with composables: How to use and share composables with Pinia stores.
- Migrating from 0.0.7: A migration guide with more examples than the changelog.
