4 ms·
I think it’s worth also quoting the rule that the dissenting programmer objected to. > One of the solutions was to introduce a rule to memoize everything retur
by grncdr 2y ago
I think it’s worth also quoting the rule that the dissenting programmer objected to.
> One of the solutions was to introduce a rule to memoize everything returned by hooks, to automatically prevent future problems with memoization.
… which introduces a systemic performance penalty to prevent outlier performance problems.
The article argues against “heroes”, but I think the more appropriate term is “experts”.
- dave1999x 2y agoIndeed, Dan Abramov is pretty expert at React and he has a compelling article which advises against memoize everything. Before you memo https://overreacted.io/before-you-memo/ https://overreacted.io/before-you-memo/