[Vuejs]-Vue.js – vuex : error unknown action type from mapActions

0👍

when using vuex with vue-tables-2 , a module is registered with the name prop from the table component

useVuex is a boolean indicating whether to use vuex for state management, 
or manage state on the component itself. If you set it to true you must 
add a name prop to your table, which will be used to to register a module 
on your store. Use vue-devtools to look under the hood and see the current state.

I added correctly my own actions into this module, ( deleteUser: (store, id) was there) … but I unfortunatly declared this ‘users’ module as namespaced = true… changing it to false or calling the action as namespaced solved this issue…

Leave a comment