How to use the vuex.Store.call function in vuex

To help you get started, we’ve selected a few vuex examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nikolay-govorov / logux-vuex / create-logux-store.js View on Github external
function LoguxState (client, config, vuexConfig) {
  var self = this

  Store.call(this, deepClone(vuexConfig))

  this.client = client
  this.log = client.log

  var init
  var prevMeta
  var replaying
  var wait = {}
  var history = {}
  var actionCount = 0
  var started = (function (now) {
    return { id: now, time: now[0] }
  })(client.log.generateId())

  self.initialize = new Promise(function (resolve) {
    init = resolve