Samuel
I've noticed that the bsky app has a *lot* of useCallback hooks - makes me wonder about the impact that must have on performance (given that 90% won't really be doing anything)
1 7
P(aul) Frazee
this is my first big react project since after the hooks change and I only just became aware of the more nuanced aspects of when to useCallback. it might not be ideal right now
4 24
Samuel
@samuel.fm
Ah fair enough, yeah it’s a bit overboard atm haha. useCallback is useful but it’s overkill if you’re just making an onClick handler
3