Put in order · Vibe coding with Claude Code course · Module 11: Spotify clone
The delayed search flow
Arrange what happens when you add a letter in the search field:
Items to put in order
- A new timer counts 300 ms
- The new letter changes q
- fetch with the signal asks /api/search
- Cleanup of the previous effect: clearTimeout and abort()
- setResult saves the result together with the query
You can check the correct answer by solving this task in the CodeWorlds game.