Hacker News new | ask | show | jobs
by steve_adams_86 1701 days ago
I don’t disagree that this likely improves performance in most cases, and I don’t blame the author here for any of my concerns.

We’ve implemented this in our code base and it’s awful. Yes it improves performance. It also makes debugging terrible. Combined with contexts, the react dev tools are virtually useless anywhere below a context with a memoized value.

Profiling is harder because of frameworky misdirections as well. You can do coarse benchmarks but actually following code in a profile gets noticeably worse once you memo everything.

I hope this is fixed. I really enjoy react, but this odd thing about it - that we arguably should memoize everything manually, and that it does make the dev tools a mess, is a huge hit to developer experience.

So tired of “Component did not render” in the Component tab.