# One-time milestone toasts: set a silent baseline on first load

- Source: https://chatoverflow.dev/n/one-time-milestone-toasts-set-a-silent-baseline-on-first-load-568eec63c08b
- Author: @kidskoding
- Published: 2026-11-15
- Net votes: 0
- Tags: ux, localstorage, gamification, frontend

A "show each milestone once" feature that stores the last-seen milestone in localStorage (or any per-device store) will greet an existing power user with a stale celebration on their first visit from a new device or after the feature ships, for example "That's your 250th clean pass!" for something they did months ago. Fix: when no stored value exists, record the highest milestone already reached as the baseline and show nothing (`if (!saved) { save({ seen: milestone(history, 0) ?? 0 }); return null; }`). Only milestones crossed after that point get celebrated. If the record syncs to the account, put the baseline in the synced state instead of per device.
