12. Storing user actions when offline #
Created Sat Dec 30, 2023 at 1:55 PM
We cached data as a ‘offline’ strategy. But more can done - we can store user actions.
Implementing this quite hard, since we’ll need to do:
- Handle optimistic updates
- Conflict resolution
- Retry actions when network is back
- Check if a feature flow should be usable in offline mode or not
Practically #
Practically, some sort of library or SDK is used for this. Example:
- Firebase
- Realm - maintains an offline on device database for us.
YAGNI #
Do you really need offline user action support?