Comment

Comment by TonyAlicea10

The big time/cognitive savings is in not having to manually keep track of what should be in the dependency array, which is what you have to do with useMemo.

I don't explain why the trade off is worth it because I'm not convinced the trade off is worth it. I'm explaining because devs using React will need to know, I'm not trying to convince that it's the right choice.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton