pinia-plugin-persistedstate-2
pinia-plugin-persistedstate-2
Persist and rehydrate your Pinia state between page reloads.
Features
- 🎨 Configurable globally and in every store.
- 💪 Type Safe
- 📦 Extremely small
🚀 Getting Started
Installation
# or pnpm or yarn
npm install pinia-plugin-persistedstate-2
Usage
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import { createPersistedStatePlugin } from 'pinia-plugin-persistedstate-2'
import App from './App.vue'
const pinia = createPinia()
const persistedStatePlugin = createPersistedStatePlugin({
// plugin options goes here
})
pinia.use(persistedStatePlugin)
const app = createApp(App)
app.use(pinia)
app.mount('#app')
More examples can be found in the examples folder.
API can be found in the type file.
🤝 Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
📝 License
This project is licensed under the MIT License - see the LICENSE file for details
Related Packages
pinia-plugin-capacitor-persist
A Vue 3 Pinia plugin which persists store content using the CapacitorJS Preferen...
21,737
9
pinia-plugin-loading
Auto loading data binding plugin for pinia. You don't need to write showLoading...
1,337
12
Version History
| Version | Released | License |
|---|---|---|
| 2.0.32 | MIT | |
| 2.0.31 | MIT | |
| 2.0.30 | MIT | |
| 2.0.29 | MIT | |
| 2.0.28 | MIT | |
| 2.0.27 | MIT | |
| 2.0.26 | MIT | |
| 2.0.25 | MIT | |
| 2.0.24 | MIT | |
| 2.0.23 | MIT | |
| 2.0.22 | MIT | |
| 2.0.21 | MIT | |
| 2.0.20 | MIT | |
| 2.0.19 | MIT | |
| 2.0.18 | MIT | |
| 2.0.17 | MIT | |
| 2.0.16 | MIT | |
| 2.0.15 | MIT | |
| 2.0.14 | MIT | |
| 2.0.13 | MIT | |
| 2.0.12 | MIT | |
| 2.0.11 | MIT | |
| 2.0.10 | MIT | |
| 2.0.9 | MIT | |
| 2.0.8 | MIT | |
| 2.0.7 | MIT | |
| 2.0.6 | MIT | |
| 2.0.5 | MIT | |
| 2.0.4 | MIT | |
| 2.0.3 | MIT |
Showing the latest 30 of 49. See every release on npm