Skip to content

Glossary: Vue.js

defineStore

The Pinia function that creates a store from an id and a setup function. Refs become state, computeds become getters, and functions become actions.

Where the book teaches it

Related terms

StorePiniaGetterAction