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.
The Pinia function that creates a store from an id and a setup function. Refs become state, computeds become getters, and functions become actions.