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

Is it not easy because the syntax is cumbersome (eg. chained calls to setIn([...]) in immutable.js), or because it is fundamentally difficult? The former is something that's specific to Immutable.js and many other javascript frameworks. Other languages have solved that problem rather elegantly (cursors, lenses). If it's the later then I doubt shouldComponentUpdate will be much less complex than the state update function (in terms of complexity, lines of code, easy of understanding etc).


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

Search: