Vuex-persistedstate: Persist data for some states

Created on 29 Jan 2018  路  3Comments  路  Source: robinvdvleuten/vuex-persistedstate

I could not find a way to persist data for just few states that I want to keep track of.
I've tried with filter option, but it seems as its not working or I'm not using it in a right way.

Has anyone done this before?

Most helpful comment

@nikugogoi Can you please give me an example?
I'm using modules for Vuex

EDIT:
dot notation did not work at first, but it works now.

Example:
module.state

All 3 comments

use paths option

@nikugogoi Can you please give me an example?
I'm using modules for Vuex

EDIT:
dot notation did not work at first, but it works now.

Example:
module.state

can you give an example after finding the answer?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rootsli picture rootsli  路  5Comments

kylebradshaw picture kylebradshaw  路  5Comments

gimyboya picture gimyboya  路  3Comments

abensur picture abensur  路  4Comments

rodneyrehm picture rodneyrehm  路  3Comments