vuex-along
Function adapter fornpm install vuex-along-function-adapter --save
# or
yarn add vuex-along-function-adapter
import createVuexAlong from "vuex-along";
import functionAdapter from "vuex-along-function-adapter";
const store = new Vuex.Store({
plugins: [
createVuexAlong({
adapterOptions: functionAdapter(),
}),
],
});
Notice
The function for persistent storage must be a pure function