We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If I use both createPersistedState, createSharedMutations I can call store.dispatch('setAuthCode', query.code ) from my main process.
createPersistedState, createSharedMutations
store.dispatch('setAuthCode', query.code )
If I remove createSharedMutations I can not.
But using both, I can not update the state in my component using: this.$store.dispatch('setAuthCode', code)
this.$store.dispatch('setAuthCode', code)
If I remove createSharedMutations I can update state in my component.
Without createSharedMutations the vuex.json updates, but it is not reacting and updating in the component.
How can I call an action to mutate the state from both main and render process? I thought this was the point of the package. Not either or.
What gives?
The text was updated successfully, but these errors were encountered:
This should fix it
Sorry, something went wrong.
Already have import store from './store' in my background.js
import store from './store'
Are you using electron-vue boilerplate?
I had the exact same problem as you and above mentioned solution fixed it.
#44
No branches or pull requests
If I use both
createPersistedState, createSharedMutations
I can callstore.dispatch('setAuthCode', query.code )
from my main process.If I remove createSharedMutations I can not.
But using both, I can not update the state in my component using:
this.$store.dispatch('setAuthCode', code)
If I remove createSharedMutations I can update state in my component.
Without createSharedMutations the vuex.json updates, but it is not reacting and updating in the component.
How can I call an action to mutate the state from both main and render process? I thought this was the point of the package. Not either or.
What gives?
The text was updated successfully, but these errors were encountered: