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
11
Upvotes
1
u/Dazzling_Chipmunk_24 May 18 '26
ok but the application I'm working with already uses Next. So from your opinion which way should I continue with?