Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How are people getting along with Vuex vs Redux?

It looks pretty clean and grokable in the examples and deals with async out of the gate -

https://github.com/vuejs/vuex/tree/dev/examples/counter



Using Vuex has a lot less overhead than Redux and async is super! It's fairly easy to keep modular.

Here's a medium size store for a project I worked on: https://github.com/tmm/notational/tree/master/src/store


Thanks, that looks pretty reasonable.


If you use something like Kea (https://kea.js.org), the amount of boilerplate for Redux goes down dramatically. The syntax is actually pretty simiar to Vuex, perhaps with even less boilerplate.


You've done a nice job with kea. The examples are pretty clear. Somehow the selection of verbs and structure is more readable for me in the vuex example but I'm not sure you could do much about that.

I won't be using this as it definitely sets off my library-depth spidey sense.

The multiple libraries it abstracts would all change versions over time and lead my applications to be even more brittle.

Vuex being mainline with Vuejs is a major plus as I look at its long term stability, though whether it insists on vuejs I need to look into.


Hey, thanks for the comments/feedback!

For the library-depth spidey sense, there's really no getting around that. In a way, as React itself is just the view library, you're forced to add new pieces to your app until it all clicks together. Kea is just one more of these pieces... And I wrote it so the other ones would click together. The alternative to abstracting libs like that is to write and bundle everything yourself, but that is a hard and, in this case, unnecessary path to take.

Two of the libraries it abstracts (redux and reselect) are as stable as a rock. There have been no breaking changes for many major releases. The third one, redux-saga, is a bit more brittle, but as it gets passed direct control over its domain, I don't see how kea would break anything there, at least not in the near future.

Of course I'll do my best to keep up with new releases of all dependencies. I do have a few apps with Kea that I actively maintain.

There's still the chance that Kea itself will change drastically. I hope not. I'm actually trying to stabilise the API for a 1.0 release.


Did not known about Kea, seems nice! However, there are no unit tests??


They are in src/__tests__


Thx, didn't see them at first. Since i like to complain: continuous integration and code coverage with nice badges are missing ^^


Do you happen to know whether there's an equivalent for NgRx?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: