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 07 / Topic 5 of 7

loading.tsx vs explicit <Suspense>: when to reach for which

Both routes above build to the same symbol (◐, section 6) and both stream — the choice isn't about correctness, it's about scope and navigation behavior. Reading straight from the installed package's own comparison:

loading.js <Suspense>
Scope Entire page Any component
Setup Drop in a file Wrap components explicitly
Navigation Prefetched as instant fallback Not prefetched by default
Best for Pages where nothing renders without data Most pages, for granular control

Saathi Ops Console's main page (section 2) needed granular control — the header and summary are worth showing immediately, so a full-page loading.tsx would have thrown away real content the shell could have kept. /ops/orders (section 4) had nothing worth showing without its one list, so the page-level shortcut cost nothing. Default to explicit <Suspense> close to the slow read; reach for loading.tsx only when a whole segment genuinely has nothing to show without its data.

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

Search the guide