Returning to a mobile screen with moving state
Published
A retrospective on work from 2026.
Updated
In a party-planning MVP, I worked on an interface that displayed a running timeline and interacted with playback state. The project combined a React Native application with supporting web and API work and remained in development.
A running countdown creates a particular kind of UI problem. The screen can look active even when the information behind it is no longer current.
Leaving the screen changes the problem
On a mobile device, people move between screens and applications. An interface that represents something happening over time has to account for the period when it was not in focus.
My work included focus handling, refresh behaviour and the relationship between displayed time and the state received from the server. Returning to the screen needed to be treated as a transition, rather than just another render of the previous values.
The useful question was whether the interface could still present its information as current. An old value can be perfectly valid as a record of what was last known while being misleading as a live indication.
A newer action can overtake an older request
The application also had actions that changed playback state. Those actions could happen while a background refresh was in flight.
That creates an ordering problem. A request started earlier can finish after a more recent action. The response arriving last is not necessarily the information the interface should accept as its latest state.
I worked on handling that behaviour in the mobile client. The lesson applies to many asynchronous interfaces: reason about the action a response belongs to, rather than only the moment it arrives.
Keep time and screen state understandable
The project included playback-related logic that could be considered separately from rendering the screen. That separation helped make the behaviour easier to inspect: what information had arrived, how it related to the displayed time and which actions could change it.
I used AI coding tools in the engineering workflow and owned the technical design, review and integration of this work. The responsibility was to understand those transitions well enough to assess the implementation.
The MVP provided a concrete engineering challenge: keeping a changing, asynchronous interface honest about what it knows when the person returns to it.
Client work is described anonymously; examples focus on my contribution and general engineering lessons.