Samuel
@samuel.fm
Advice for new Bluesky users: If you've memoized a react component with React.memo, make sure to use useCallback for any functions you pass it. Otherwise they won't have stable identities, and it will make the memo useless since the props will be different every time!
30 63 553
Samuel
also, even though it might be annoying, *always* listen to eslint-plugin-react-hooks when it complains about exhaustive deps! it knows what's best. and if that makes your effect useless, well, You Might Not Need An Effect
3 68
Nick
It’s tragic that they decided to hide the autofix behind a dangerous flag. I get why but it just made everyone believe the fix is optional
3
Dave
When you came here to post your art but Bluesky knows you're a frontend dev...
2
Hy-An
Been developing in react for almost 4 years and this kind of stuff is still a pain point for me