Function adapter for vuex-along
npm 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(),
}),
],
});
The function for persistent storage must be a pure function