MDSLKTR / pouch-vue

Pouchdb bindings for Vue.js
MIT License
90 stars 17 forks source link

Use pouch in Vuex #44

Closed anbraten closed 4 years ago

anbraten commented 4 years ago

Is there currently a way to access $pouch outside a vue component?

I would like to do some actions to pouch inside my store.

matiasjg commented 4 years ago

I think in the action you can try this:

customActionInStore() {
  this._vm.$pouch.put(...)
}