Concept Flow - Why data fetching differs in Next.js
Start: User requests page
Is page a Server Component?
No→Client Component fetches data on client
Yes
Server Component fetches data on server
Render page with fetched data
Send HTML to browser
Browser hydrates page
Client-side interactivity continues
Next.js fetches data differently depending on whether the component runs on the server or client, affecting when and where data is loaded.