Question · Vibe coding with Claude Code course · Module 9: Discord clone

Quiz: The ignore flag in the effect

Why does the WeatherWidget effect have an ignore variable that the cleanup function sets to true?

Answer options

  • So the effect doesn't run on the first render
  • So that a response for the previous port that returns later doesn't overwrite the result for the new port
  • To hide the API key from the browser's network panel
  • So that fetch doesn't send the session cookies

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