Next.js · Middle · Question 42 of 75
Which file sets the fallback for a parallel route slot on a full page reload?
- ✓Correct answer:
default.tsx - 2
fallback.tsx - 3
slot.tsx
Explanation
During soft navigation, Next.js remembers the active state of slots. After a reload, it can't restore the state of slots that don't match the URL, so it renders their default.tsx (or a 404 if the file is missing). For a modal, @modal/default.tsx usually returns null.