stream-chat-react-native
stream-chat-react-native copied to clipboard
Optimistically Update Reactions within offline database and UI
Objective
Whenever user adds a new reaction or updates existing reaction, we don't update the UI until we receive relevant ws event. This is not a good user experience especially in cases of slow network.
This can be fixed by optimistically adding reactions to UI and local database. And in case of failed request or no-network case, we can re-sync the state once network is recovered.
Goals
- Build architecture for sync status of entities.
- Reactions should be updated/added/removed optimistically on UI and offline DB.