Card · Special Files
not-found.tsx, error.tsx, loading.tsx — route-level fallbacks.
Quick Reference
not-found.tsx— triggered bynotFound(), scoped to route segment.error.tsx—"use client", catches render errors in segment tree, exportserror+reset().loading.tsx— Suspense fallback for the segment while server page awaits promises.- Co-located with the route segment — never a global file unless truly universal.
Study Card · Chapter 01a-special-files