Question · Next.js course · Module 2: Routing and Layouts
What Shallow Routing Preserves
What does shallow routing in Next.js enable when changing the URL?
Answer options
- Changing the URL while preserving component state, without re-fetching data
- A full page reload that clears memory
- Rendering the page exclusively on the server
- Automatically removing query parameters from the URL
Show the answer
Correct answer:
- Changing the URL while preserving component state, without re-fetching data