Closed shadowbq closed 1 year ago
Add example for pinia-plugin-persistedstate
pinia-plugin-persistedstate is maintained and used more than pinia-plugin-persist https://npmtrends.com/pinia-plugin-persist-vs-pinia-plugin-persistedstate
pinia-plugin-persistedstate
pinia-plugin-persist
(untested.. something like?)
import { defineStore } from 'pinia' import { encryptStorage } from 'path/to/encryptStorage'; export const useStore = defineStore('store', { state: () => ({ return: { first: 'John', last: 'Doe', accessToken: 'xxxxxxxxxxxxx'. }, }), persist: { storage: encryptStorage, paths: ['accessToken'], }, })
Hello @shadowbq , let me put it in the examples. Thank you very much
Add example for pinia-plugin-persistedstate
pinia-plugin-persistedstate
is maintained and used more thanpinia-plugin-persist
https://npmtrends.com/pinia-plugin-persist-vs-pinia-plugin-persistedstate(untested.. something like?)