vuex-webextensions icon indicating copy to clipboard operation
vuex-webextensions copied to clipboard

Not persisting. Store is reset every time extension icon is clicked

Open jacobcoro opened this issue 4 years ago • 1 comments

Project is at https://github.com/IPFC/ipfc-extension

Screen Shot 2020-03-06 at 11 45 17 AM
// 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.

jacobcoro avatar Mar 06 '20 03:03 jacobcoro

This project is abandoned.

rendomnet avatar May 22 '21 11:05 rendomnet