davestewart / vuex-pathify

Vue / Vuex plugin providing a unified path syntax to Vuex stores
https://davestewart.github.io/vuex-pathify
MIT License
1.37k stars 57 forks source link

Add `mapActions()` helper to Pathify #5

Closed davestewart closed 6 years ago

davestewart commented 6 years ago

It would actually be pretty useful to have a mapActions() style helper in Pathify.

Syntax to be decided, but along the lines of:

methods: mapActions('products', [
  'load',
  'update'
])
methods: mapActions({
  'loadProducts': 'products/load'
  'updateSettings': 'settings/update'
])
methods: mapActions('products/load', 'settings/update', ...)
methods: mapActions('products/*')
davestewart commented 6 years ago

Closed by b434fe06a79e08369a817c120e5c90af8ef41b0f