Method to filter which mutations will trigger state saving
Be default returns true for all mutations.
Check mutations using mutation.type
Key to use to save the state into the storage
Names of modules that you want to persist. If you create your custom PersistOptions.reducer function, then that will override filter behaviour, not this argument
Function to reduce state to the object you want to save. Be default, we save the entire state. You can use this if you want to save only a portion of it.
Method to retrieve state from persistence
Method to save state into persistence
Window.Storage type object. Default is localStorage
Set this to true to support Vuex Strict Mode
Support serializing circular json objects
let x = {a: 10} x.b = x console.log(x.a) // 10 console.log(x.b.a) // 10 console.log(x.b.b.a) // 10
Generated using TypeDoc
If your storage is async i.e., if setItem(), getItem() etc return Promises (Must be used for asynchronous storages like LocalForage)
false