Content
@
0 reply
0 recast
0 reaction
Zach
@zachterrell
useEffect was a mistake
17 replies
1 recast
43 reactions
William
@wtracy
The only practical use I've had for useEffect is code that really only should execute once at startup. (In my case, initializing sqlite and syncing data from a server.) I'm sure it can do other things that are great, but I've never needed them. It feels strange to need a special hook for that.
2 replies
0 recast
0 reaction
William
@wtracy
In case it's not obvious, this was in the context of React Native.
0 reply
0 recast
0 reaction
Chukwuka Osakwe
@chukwukaosakwe
I wish I could like this a hundred times. Pretty much every other 'use case ' is, it seems to me, not something you need this special hook for.
0 reply
0 recast
0 reaction