News for hackers. Stuff that matters.
Re:Recoil – A state management library for React by diffrinse on Thursday May 14, 2020 @07:02PM (#23186667)
>Well, I know that on one tool we saw a 20x or so speedup compared to using Redux. This is because Redux is O(n) in that it has to ask each connected component whether it needs to re-render, whereas we can be O(1).

Don't I get the same perf with selectors?

Re:Recoil – A state management library for React by davidmccabe on Friday May 15, 2020 @02:15PM (#23195439)
I could be mistaken but I think that you still have to do a shallow compare on the connected props of every component.
Re:Recoil – A state management library for React by diffrinse on Friday May 15, 2020 @04:19PM (#23196928)
Nah, you're completely correct