Share Vuex mutations between tabs and windows
vuex-shared-mutations
Share certain Vuex mutations across multiple tabs/windows using localStorage property, which allows you to access a local Storage object.
Vuex mutations are very similar to events, and are the only way to actually change state in a Vuex store.
Example by Illya Klymov
Installation
$ npm install vuex-shared-mutations
Usage
import createMutationsSharer from 'vuex-shared-mutations'
const store = new Vuex.Store({
// ...
plugins: [createMutationsSharer({ predicate: ['action1', 'action2'] })]
})
Vuex is a state management pattern and library for Vue.js applications.
You can find the repository on GitHub.
Submitted by Stanislav Eremenko.