This module enables localforage
within Pinia to store states persistently.
To install the module, run:
npm install @owdproject/module-pinia-localforage
Define the module in your nuxt.config.ts
:
export default defineNuxtConfig({
modules: ['@owdproject/module-pinia-localforage']
});
- Configures
pinia-plugin-persistedstate-2
to uselocalforage
- Enables persistent storage for Pinia stores
- Works seamlessly with Nuxt
This project is released under the MIT License.