vuex-webextensions
vuex-webextensions copied to clipboard
Not persisting. Store is reset every time extension icon is clicked
Project is at https://github.com/IPFC/ipfc-extension

// store.js
import Vue from 'vue';
import Vuex from 'vuex';
import VuexWebExtensions from 'vuex-webextensions';
import * as getters from './getters';
import mutations from './mutations';
import * as actions from './actions';
Vue.use(Vuex);
export default new Vuex.Store({
plugins: [
VuexWebExtensions({
persistentStates: ['jwt', 'pinataKeys'],
loggerLevel: 'verbose',
}),
],
state: {
jwt: 'initial',
jwtValid: false,
pinataKeys: null,
},
getters,
mutations,
actions,
});
```as you can see in the screenshot from the console.logs, the mutation ('setJwt') is successful, but as soon as i click elsewhere and reclick the extension icon, it gets reset and goes back to the store staring value.
This project is abandoned.