Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

191
Views
How can I use vuex-persistedstate on Nuxt for only specific stores?

This is the library: https://github.com/robinvdvleuten/vuex-persistedstate. I created the following plugin file for Nuxt.

import createPersistedState from 'vuex-persistedstate'

export default ({ store }) => {
  createPersistedState()(store)
}

The problem is I am not sure how I can exlude certain stores since this persists all the stores.

almost 4 years ago · Santiago Trujillo
1 answers
Answer question

0

The repo you're sharing is archived as of today so you should probably pass on it and switch to Pinia.

There are 2 packages doing that with Pinia:

  • https://prazdevs.github.io/pinia-plugin-persistedstate/guide/advanced.html#multiple-persistences-per-store
  • https://seb-l.github.io/pinia-plugin-persist/advanced/custom-key.html

Otherwise, a homemade solution may be needed but vuex-persistedstate will not allow you to select a store as you initially wanted.

almost 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!