r/reactjs • u/Dazzling_Chipmunk_24 • May 18 '26
Fetching api in Next.js compared to React
Is it better to fetch data on the Next.js server for initial page loads, compared to the traditional React approach of using useEffect with an empty dependency array? My main concern with Next.js is that pages are generated at build time — so how do you handle data that changes frequently
Also I'm talking about Pages Router
10
Upvotes
View all comments
Show parent comment
0
u/Lumethys May 19 '26
fetch with useEffect has too many footgun, and should'nt be used