Question · Vibe coding with Claude Code course · Module 11: Spotify clone

Why abort() in the cleanup

What does controller.abort() do in the cleanup of the search effect?

Answer options

  • It cancels a timer that has not yet counted 300 ms
  • It closes the database connection on the server
  • It clears the results when the search field is empty
  • It aborts a request that has already left, so a late response cannot overwrite a newer one

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