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

That was actually the early advice for how to use Redux, but experience has shown that leads to less than optimal performance. In fact, benchmarks show that _more_ connected components usually leads to better perf, as the cost of notifying more subscribers is less than the cost of more wasted re-renders.

See the following links for more info:

- http://blog.isquaredsoftware.com/2017/01/practical-redux-par...

- http://redux.js.org/docs/faq/Performance.html#performance-sc...

- http://somebody32.github.io/high-performance-redux/



Most performant and easiest to follow/debug/reason are often not the same thing.


Thanks for the links !




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

Search: