3 ms·
No issues with needless rerenders?
by chaimsalzer 4y ago
No issues with needless rerenders?
- yawnr 4y agoMy takeaway from these comments is that people either don’t care or literally don’t know how context works but are talking about how it’s better than redux lol
- mikojan 4y agoThis is your brain on Redux. Context does not trigger the re-rendering of all children. Updating state does. And you prevent that propagating effect by wrapping direct descendants in React.memo().
- yawnr 4y agoGuess what, this entire thread is literally people discussing using context for… app state. But yeah thanks for being patronizing
- dmak 4y agoCould you elaborate?
- solardev 4y agoHe's probably talking about this thread... https://news.ycombinator.com/item?id=34134290 https://news.ycombinator.com/item?id=34134290