Question · Next.js course · Module 4: Databases and Data Fetching

Dynamic Functions in Next.js

Which of Next.js's dynamic functions forces dynamic rendering?

Answer options

  • Only searchParams - because it retrieves data from the URL
  • Only cookies() - headers() and searchParams do not affect rendering
  • None - dynamic rendering requires manual configuration in next.config.js
  • All of the above - cookies(), headers(), and searchParams force dynamic rendering

You can check the correct answer by solving this task in the CodeWorlds game.