Re:A curated list of things related to Vue.js
by Tade0 on Saturday September 02, 2017 @05:53AM
(#15155146)
Look how Vuex - which is an equivalent of Redux, but for Vue - is implemented. Comparing to Redux it's much simpler.
[ Parent
| on HN ]
Re:A curated list of things related to Vue.js
by regecks on Saturday September 02, 2017 @06:44AM
(#15155305)
I would suggest to visitors to Vue to not dive into using something like Vuex unless you really know need it - IMO it's not at all a 'by default' library to bring into a Vue project.
Give a try using only props and events. You will save a lot of typing and brainpower avoiding actions, mutations etc. I work on a fairly large, at this point, Vue application, and I am pleasantly surprised how far we've gotten without global state stores.
If you need a global event bus, you can just use vanilla Vue to get quite far as well - https://vuejs.org/v2/guide/components.html#Non-Parent-Child-...
Re:A curated list of things related to Vue.js
by orangecat on Saturday September 02, 2017 @01:03PM
(#15157030)
Agreed. I looked at Vuex and it seemed unnecessarily complex for most projects. We just have plain state objects that get passed to components that need them, and a convention that components call methods on the state rather than modify its properties directly.