pinia-plugin-persist icon indicating copy to clipboard operation
pinia-plugin-persist copied to clipboard

Persist pinia state data in sessionStorage or other storages.

Results 40 pinia-plugin-persist issues
Sort by recently updated
recently updated
newest added

After the first data persistence, after I update the data again, the data is not updated, and after refreshing the page, the data will return to the first stored data

默认情况下,state subscriptions 绑定到添加它们的组件(如果 store 位于组件的 setup() 中)。 意思是,当组件被卸载时,它们将被自动删除。 如果要在卸载组件后保留它们,请将 { detached: true } 作为第二个参数传递给 detach 当前组件的 state subscription see [here](https://pinia.web3doc.top/core-concepts/state.html#%E8%AE%A2%E9%98%85%E7%8A%B6%E6%80%81) ``` store.$subscribe(() => { strategies.forEach((strategy) => { updateStorage(strategy, store); });...

I've created a PR for this already, as it's a simple one-line and non-interfering fix, merci :) It's [here](https://github.com/Seb-L/pinia-plugin-persist/pull/51), just to save the moment. It's tested via yalc. My case...

so that ESM module files (.mjs) can successfully import this package, while keeping the .js extension. This feature was added to Nodejs at v12.0.0. Documented to present [here](https://nodejs.org/api/esm.html#enabling), widely needed...

I tried the installation for Nuxt in my Nuxt 3 project (RC 6) but it didn't work. I propose #49 to complete the documentation.

when i try used nuxtjs3 vue3 typescript this error display "sessionStorage is not defined"

1. On the home page, click the login out button to log out 2. On the login page, enter your email address and name to enter the home page 3....

electron V17 Vue3.2.29 vite2.8.6 typescript4.6.2 version 0.0.7 is normal

Is there any intent to be able to support an async storage provider like localforage? ``` import localforage from 'localforage' export default { setItem: async (key, value) => { return...