Question · Vibe coding with Claude Code course · Module 4: Instagram clone

Quiz: key on Suspense

Why does page.tsx have <Suspense key={query} fallback={<GallerySkeleton />}>?

Answer options

  • So that the phrase lands in the address as ?q=
  • So that the field does not send a question to the server at every letter
  • So that every tile in the list has a unique key
  • So that with every phrase the skeleton returns and Gallery starts anew with fresh photos

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