0.1.1 • Published 2 years ago

pwp v0.1.1

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
2 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

2 years ago

0.1.1

2 years ago

1.0.0-beta.0

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago