Hacker News new | ask | show | jobs
by jdmg94 1557 days ago
Memoizing everything might be hurting more than helping your apps performance. I’ve built a few different apps with RN, the issues here might be specific to this project
2 comments

I know this is theoretically true, but I've never found this to be the case in practice.

Coinbase, in fact, has made it a rule that all things must be put in useMemo. https://attardi.org/why-we-memo-all-the-things/

Facebook is working on an experimental compiler called React Forget that will transparently memoize everything for you.

https://www.reddit.com/r/reactjs/comments/rcn5ks/react_forge...

No

I've had apps where I memoized everything, then turned it all of for a testrun and it was very visibly slower without memoizing.