Level 54
I haven't used it, but this looks like it may do everything you need: https://github.com/JiriChara/vuex-crud
Hello Guys , I wold like to know if has any way to re use codes , or expand a class inside VUEX . I know that in VUE we have mixins , but I dont know if that it is possible to use in VUEX . I have many VUEX CRUD modules . and in all those modules I have those actions ( they are the same )-
set_filters: ({commit}) => {
} ,
store: ({commit} , data ) => {
}
update: ({commit} , data ) => {
}
delete: ({commit} , data ) => {
}
pagination: ({commit} , data ) => {
}
search: ({commit} , data ) => {
}
What wold be the best practice to I dont repeat all those code in all those VUEX modules ?
Please or to participate in this conversation.