QuizNot attempted
Fetching in layouts
1–4 to choose, Enter to submit
Show answer & explanation
Correct answer:
- Layouts don't re-render on client navigation within their segment, so the data can go stale
- Layouts persist and don't re-render on client navigation within their segment, so data they fetched can stay stale while child pages change
- fetch volatile data in the page or a component inside it.
- Not 'layouts cannot be async': layouts can be async Server Components.
- Not 'client only': they are Server Components by default.
- Not hydration errors: stale data isn't a server/client mismatch.