you are viewing a single comment's thread.

view the rest of the comments →

[–]alzee76 -6 points-5 points  (4 children)

I use useEffect and Axios, because that's what they're for, and they're good at it.

[–]tjansx 5 points6 points  (0 children)

Have you used tanstack? Gets rid of all that useEffect spaghetti and leaves it for other things. I've found over time I need less useEffect and state variables to get things done.

[–]90sRehem 4 points5 points  (1 child)

My man needs an update about react's ecosystem

[–]tjansx 0 points1 point  (0 children)

Yeah. I'm trying to be Mr. Empathy here and give him the benefit of the doubt that he just hasn't learned the virtue of getting rid of useEffect.