Question · Next.js course · Module 2: Routing and Layouts

Programmatic Prefetching with useRouter

Which useRouter method is used to programmatically prefetch a page (e.g. on mouse hover)?

Answer options

  • router.load()
  • router.prefetch()
  • router.preload()
  • router.fetch()
Show the answer

Correct answer:

  • router.prefetch()