QuizNot attempted
Layout vs template
1–4 to choose, Enter to submit
Show answer & explanation
Correct answer:
- It is preserved: layouts don't re-mount; only the page segment swaps
- A
layout.tsxstays mounted across navigations within its segment - only the page segment below it swaps, so the input's client state survives.
- Not 'every navigation re-mounts the layout': that is the defining difference from templates.
- Not 'resets unless template.tsx': backwards,
template.tsxis what re-mounts on each navigation. - Not a full reload: App Router navigation is client-side.