Recall & Review
beginner
What is the purpose of intercepting routes in Next.js?
Intercepting routes lets you show parts of a page or UI without leaving the current page. It helps create smooth transitions and nested layouts by loading content inside existing layouts.
Click to reveal answer
beginner
How do you define an intercepting route in Next.js App Router?
You add parentheses around the folder name in the app directory, like (modal), to mark it as an intercepting route. This folder can then load UI inside the current page without full navigation.
Click to reveal answer
intermediate
What is the difference between a normal route and an intercepting route in Next.js?
A normal route replaces the whole page content. An intercepting route loads content inside the current page layout, letting you keep parts of the UI visible while changing others.
Click to reveal answer
intermediate
Can intercepting routes be used to create modals or sidebars in Next.js?
Yes! Intercepting routes are perfect for modals or sidebars because they let you open these UI parts without leaving the current page or losing state.Click to reveal answer
beginner
What folder naming pattern signals an intercepting route in Next.js App Router?
Folders with parentheses, like (modal) or (sidebar), are intercepting routes. The parentheses tell Next.js to treat them as UI overlays or nested content inside the current page.
Click to reveal answer
How do you mark a folder as an intercepting route in Next.js App Router?
✗ Incorrect
In Next.js App Router, folders wrapped in parentheses are intercepting routes.
What is a common use case for intercepting routes?
✗ Incorrect
Intercepting routes let you show modals or sidebars inside the current page.
What happens when you navigate to an intercepting route?
✗ Incorrect
Only the part inside the intercepting route updates, keeping the rest of the page intact.
Which folder name is an example of an intercepting route?
✗ Incorrect
Parentheses around the folder name mark it as an intercepting route.
Why use intercepting routes instead of normal routes for UI overlays?
✗ Incorrect
Intercepting routes keep the current page visible and add overlays like modals or sidebars.
Explain how intercepting routes work in Next.js and why they are useful.
Think about how you open a popup without leaving a webpage.
You got /4 concepts.
Describe the difference between a normal route and an intercepting route in Next.js.
Compare full page reload vs partial UI update.
You got /4 concepts.