Better HN
topnewbestaskshowjobs
Log inSign up

trnmura

2 karma · joined Jun 2, 2016 (10y ago) · 3 submissions

Submissions

comment 9y ago · link · parent

Sadly, I think this is more of a rule than an exception...

comment 10y ago · link · parent

I find this string pattern terrible as well. As the application grows, there are lots of reducers with lots of strings, and it gets really confusing. It feels like this is inherited from Flux (https://facebook.github.io/flux/), Facebook's initial solution to handling state.

On the other hand, you have all the state logic on reducers... If actions were to dispatch state-modifying functions, it wouldn't take long for the code to become really confusing.