The Frozen Dropdown
The category filter dropdown loads correctly the first time you visit the products page
The bug report
You get the whole project — a React front end, an Express API, and Mongoose models — opened in a browser editor. Reproduce the symptom by reading the code, change what’s wrong, and run the hidden tests to prove it.
What the fix must prove
- loads the category list for the first shop
- reloads categories when the shop changes
- resolves the final shop when switches come quickly
- serves a distinct catalogue per shop
- answers an empty list for a shop without categories
Related challenges
- The Missing Name — api contract bug, beginner
- The Ghost Update — async / race condition, intermediate
- The Silent Field — database / schema bug, beginner