Cookbook

  • 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().
  • Migrating from 0.0.7: A migration guide with more examples than the changelog.