pinia-plugin-reset
v1.0.2
Published
Vue plugin for resetting Pinia setup store
Downloads
4
Maintainers
Readme
Pinia Plugin Reset
Description
Vue plugin for resetting Pinia setup store.
Installation
npm install pinia-plugin-reset
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginReset from 'pinia-plugin-reset'
import App from './App.vue'
const pinia = createPinia()
pinia.use(piniaPluginReset)
const app = createApp(App)
app.use(pinia)
app.mount('#app')
Usage
const store = useMyPiniaStore()
store.$reset()