Reputation: 324
I have 2 components on the page. One of them is filters and other is list of results.
Two components have been made in reasons: 1. They are too large to use in single component 2. Made them separately. I can use list component without filters.
Now components are communicated via Bus event. And my question is: "Do I continue to use bus event or delete it and make via vuex storage?".
P.S. I would like to hear real еips with explanations
P.S.S. Please don't write something like "you are idiot" and etc.
Upvotes: 1
Views: 1511
Reputation: 71
I guess it's a matter of analyzing your needs. I usually think like this:
If it's a simple event that only happens there, use the bus. If those filters are used other than in the parent, store them. Vuex is already in place and every logic is stored, store it for sake of consistency.
Upvotes: 3