0.1.1 • Published 3 years ago

pwp v0.1.1

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
3 years ago

pwp

Pinia with persistence.

Installation

Install with your favourite package manager:

# yarn
yarn add pwp

# pnpm
pnpm install pwp

# npm
npm install pwp

Import and install:

// main.js
import { createPinia } from 'pinia'
import { pwp } from 'pwp'

const pinia = createPinia()
pinia.use(pwp)

Enable the plugin per store:

import { defineStore } from 'pinia'

export const useStore = defineStore('...', {
  persist: true,

  state: () => ({ ... }),

  actions: { ... },

  getters: { ... }
})

License

MIT

0.1.0

3 years ago

0.1.1

3 years ago

1.0.0-beta.0

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago