when searching for questions about eventbus and vuex, we often see "eventbus for small projects, vuex for medium and large"
is it not recommended to use eventbus and vuex at the same time in VUE?
I have used vuex in my project, but not eventbus. Now I have a problem:
the function of component An is to create users, and component B is a list of users.
the data and logic of component An and component B are placed in different vuex modules
A component needs to notify component B to refresh data after successfully creating a user. The easiest way is to call $store.dispatch ("action name of component B refresh data")
after the user is created successfully, but I don"t want component A to couple B component here
I think it"s good to introduce eventbus here, but considering the questions in the title, ask
here, or is there a better way to implement notification just with vuex?