Data Fetching in Server Components
Server Components fetch data by awaiting fetch or a database client directly in the component body, colocating each query with the component that renders it instead of lifting everything to a route-level loader. Parallelism comes from starting requests before awaiting them (or Promise.all); sequential awaits create request waterfalls.
This Concept is waiting for its first lesson!
Server Components fetch data by awaiting fetch or a database client directly in the component body, colocating each query with the component that renders it instead of lifting everything to a route-level loader. Parallelism comes from starting requests before awaiting them (or Promise.all); sequential awaits create request waterfalls.
Are you a teacher? Sign in to start contributing.
Sign In