ENGINEERING RESIDENCYBy Mobterest Studio
RP-26-001Open

Cover sheet

The cart badge that never moves

Case
RP-26-001
Concept area
State management
Level
Beginner
Time
About 15 minutes
Tags
Notifier, immutability, rebuilds
Draws on
What is State? Understanding the ProblemThe Cart: NotifierProvider at Work

Incident report

You've joined a team building a pre-order app for a local bakery. Customers browse pastries and tap Add to basket. A tester sends this note:

"I added three croissants and the basket icon still says 0. When I open the basket, all three are there. Weirdly, if I rotate my phone, the icon suddenly shows 3."

The developer who wrote the basket says the logic is fine, because the items are clearly being saved.

Investigator's notes

The items are saved, yet the badge doesn't update. What is Riverpod checking when it decides whether to rebuild the badge?

Sign in to investigate

Your hypothesis is saved with the case, and the reveal unlocks straight after.

Ready when you are. Investigate, then file your notes.

  1. 1Read the report
  2. 2Study each exhibit0/4
  3. 3Answer both questions0/2
  4. 4File your notes to unseal the envelope