Socket
Book a DemoInstallSign in
Socket

pinia-plugin-persistedstate-2

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pinia-plugin-persistedstate-2

Persist and rehydrate your Pinia state between page reloads

latest
Source
npmnpm
Version
2.0.31
Version published
Weekly downloads
5.5K
33.38%
Maintainers
1
Weekly downloads
 
Created
Source

pinia-plugin-persistedstate-2

Persist and rehydrate your Pinia state between page reloads.

CI NPM version

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

Keywords

vue

FAQs

Package last updated on 14 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts