Y
Hacker News
new
|
ask
|
show
|
jobs
by
boredtofears
735 days ago
How do you fetch and persist server side data without useEffect? (Assuming vanilla react)
1 comments
crvst
735 days ago
That’s probably the main real-world use case for useEffect. Dedicated third-party libraries like React Query obviously use useEffect under the hood as well
link
boredtofears
734 days ago
Yeah that's what I thought -- all the React codebases that I've worked in are riddled with `useEffect` for this reason primarily.
link
crvst
733 days ago
I'm jealous, then. I've seen all kinds of deranged Rube Goldberg machines built using useEffect
link