MediumScenarioArchitecture, offline and networking scenarios
Users on rotating screens lose a half-filled form. How do you preserve state?
What a good answer covers
Keep state in a ViewModel or equivalent and persist critical drafts with SavedStateHandle or local storage so process death does not lose input.
PreviousDesign offline-first sync for a field-sales app where reps edit orders without connectivity for days.Next The app is killed in the background and users return to a broken screen. What do you check?
More on Architecture, offline and networking scenarios
Flashcards for this topic- HardDesign offline-first sync for a field-sales app where reps edit orders without connectivity for days.
- HardThe app is killed in the background and users return to a broken screen. What do you check?
- MediumA token refresh race causes users to be logged out when several requests fail with 401 together. Fix?
- HardModularise a 300k-line Android app whose builds take 20 minutes.