Next.js · Middle · Question 52 of 75
What happens in Next.js 16 if a parallel route slot @modal has no default.tsx?
- ✓Correct answer: The build fails - every parallel slot now needs an explicit
default.js - 2The slot silently renders nothing
- 3Next.js generates a default that renders
notFound()
Explanation
default.tsx is rendered when Next.js can't recover the slot's active state after a full page load. Return null from it if the slot should be empty.