Nuxt3 中文课程《实战全栈开发简书》限时优惠

pinia-plugin-persistedstate
pinia-plugin-persistedstate

Configurable persistence and rehydration of Pinia stores.

@pinia-plugin-persistedstate/nuxt

Nuxt 3 module

🚀 Quickstart

  1. Install with your favorite package manager:
    • pnpm : pnpm i -D @pinia-plugin-persistedstate/nuxt
    • npm : npm i -D @pinia-plugin-persistedstate/nuxt
    • yarn : yarn add -D @pinia-plugin-persistedstate/nuxt
  2. Add the plugin to nuxt config:
export default defineNuxtConfig({
  modules: [
    '@pinia/nuxt', // needed
    '@pinia-plugin-persistedstate/nuxt',
  ]
})

🔧 Configuration

Usage and configuration informations can be found in the documentation

📝 License

Copyright © 2022 Sacha Bouillez. This project is under MIT license.