Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Hot answers tagged

1

The code is completely Dispatcher-agnostic. You could supply any number of interesting (or boring) dispatch functions as the argument to the returned function. We have some similar functions in our React/Redux stack. It's not a dispatcher or dispatch component in its own right.


1

An equally good argument to normalize or flatten nested data is when it comes to updating this data. This is well explained here. Because this is a common use-case, Dan Abramov created normalizr, later re-written and now maintained by Paul Armstrong. But if you also control the API, and you probably store the data in normalized form in the database, it's ...


Only top voted, non community-wiki answers of a minimum length are eligible