Module 5 · Check it yourself · challenge 1 of 2 in this lesson

ShopApp tracks a pending item (with useReducer or useState) and listens to the Feedback remote for buy and deny

You compare your work with the list of what done means.

Open

Level 2, Builder

Challenge

Extend ShopApp.luau with the reducer pattern from this lesson: show a pending state on the button that was pressed, clear it on Feedback, and block double clicks while it waits.

Start from
The game at milestone m09 (download)

Done means

  • ShopApp tracks a pending item (with useReducer or useState) and listens to the Feedback remote for buy and deny
  • While an item is pending, its ShopButton shows Waiting and ignores clicks (Active = false)
  • A buy or deny Feedback ends the pending state, and closing the shop clears pending

Meet the criteria above, then record your own result. No test grades this check.