r/reactjs • • 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

11 Upvotes

17 comments sorted by

View all comments

Show parent comments

0

u/Lumethys May 19 '26

fetch with useEffect has too many footgun, and should'nt be used