2.0.29 • Published 4 months ago

pinia-plugin-persistedstate-2 v2.0.29

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

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

2.0.28

7 months ago

2.0.29

4 months ago

2.0.26

8 months ago

2.0.27

8 months ago

2.0.25

8 months ago

2.0.19

1 year ago

2.0.18

1 year ago

2.0.24

11 months ago

2.0.22

12 months ago

2.0.23

12 months ago

2.0.20

1 year ago

2.0.21

1 year ago

2.0.17

1 year ago

2.0.16

1 year ago

2.0.15

1 year ago

2.0.13

2 years ago

2.0.14

2 years ago

2.0.11

2 years ago

2.0.12

2 years ago

2.0.9

2 years ago

2.0.10

2 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.7

3 years ago

2.0.6

3 years ago

2.0.8

3 years ago

1.0.1

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.0

3 years ago

0.2.8

4 years ago

0.2.7

4 years ago

0.2.6

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago