3 ms·
What's so infuriating about that is the documentation basically told people, hey instead of doing this, use useEffect the way you were using these methods. So
by andrewmcwatters 3y ago
What's so infuriating about that is the documentation basically told people, hey instead of doing this, use useEffect the way you were using these methods.
So are the users wrong, or did you screw up?
- deleted 3y ago[deleted]
- c-hendricks 3y agoIf you're ignoring dependencies that should be on a call to `useEffect`, you're just making room for bugs. If you're not properly tearing down what you're doing in an effect, you're just making room for bugs. These have always been true of useEffect.
- deleted 3y ago[deleted]
- ihateolives 3y ago> So are the users wrong, or did you screw up? When you have to rewrite the documentation to basically tell the world "you're holding it wrong" then it says a lot about the thought that has (not) gone into designing the feature. And that's why I think I'm done with React for now. It just does not spark joy.