Course map
Stage 1: App Router Foundations
Stage 2: The Rendering Model
Stage 3: Data, Caching and Mutations
Stage 4: Full-Stack Next.js
Stage 5: Production and Specialization

Part 09 / Topic 3 of 5

Fetching where it's needed, not always at the top

Both pages above fetch inside one component, right next to where the data is used — not at the page's top level, passed down as props through three layers of components that don't otherwise care about reviews or stock. This is the pattern Next's own docs state directly: "you can fetch data in the component that needs it instead of drilling props." It is also exactly how Part 5's WholesalePage was already written, back when this course first introduced async Server Components — this part is not a new rule, just the same one applied to two sources instead of one.

The trade-off shows up the moment two different components need the same data, which is exactly section 4's setup: fetching where it's needed is simple and local, right up until two "where it's needed"s turn out to be the same upstream call.

Done here? The practice set for Part 9 — including the solutions — is on the part page.

Search the guide