Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jacobcoro opened this issue Mar 6, 2020 · 1 comment
Open
Labels
bug Something isn't working

Comments

@jacobcoro
Copy link

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.
@rendomnet
Copy link

This project is abandoned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants