Navigation Feel — Pending States and Transitions — Concept Check
Questions on Navigation Feel — Pending States and Transitions. App Router navigation waits for the server before anything changes on screen. Without a pending indicator the app feels frozen, and the fix is a hook rather than a spinner library.
Questions in this quiz
8 questions on Navigation Feel — Pending States and Transitions — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.After moving to the App Router, users report that clicking links feels unresponsive until the page loads. What is the simplest way to address this issue?
- AAdd a global spinner using a spinner library
- BDisable App Router navigation
- CIncrease server response speed
- DUse `useLinkStatus` to show a pending indicator
2.In a scenario where a user clicks a link and nothing appears to happen immediately, which of the following is likely occurring?
- AThe link is broken and does not work
- BThe app has crashed and needs to be restarted
- CThe server is down, causing the app to freeze
- DThe app is waiting for a server response without showing a pending state
3.You want to implement a global progress bar for navigation in your app. Which approach should you take?
- AUse `usePathname` and `useSearchParams` to track route changes
- BRely on browser's default loading indicator
- CUse a third-party library to manage progress
- DImplement a spinner for each link individually
4.Why might navigation feel instant on a deployed site but sluggish during development?
- ADevelopment environments have more code to load
- BLink prefetching is enabled in production but not in development
- CThe server is faster in production environments
- DNetwork speed is slower during development
5.A user reports that clicking a button to navigate does not update the screen immediately. How can you ensure the user knows the action is processing?
- ARefresh the page to show the new content
- BAdd a delay before processing the click
- CUse `useTransition` to manage a pending state
- DShow an alert message immediately after the click
6.What is the purpose of wrapping the ProgressBar component in `Suspense`?
- ATo delay the loading of the progress bar
- BTo prevent dynamic rendering issues with `useSearchParams`
- CTo enhance the visual appearance of the progress bar
- DTo ensure the progress bar is always visible
7.Which of the following is a benefit of prefetching links in a production environment?
- AIt reduces perceived navigation delay
- BIt simplifies code complexity
- CIt minimizes bandwidth usage
- DIt decreases server load
8.When should you turn off prefetching for links in your application?
- AFor external links
- BFor primary call-to-action buttons
- CFor all internal links
- DFor long lists of rarely-clicked links