stream-chat-react-native icon indicating copy to clipboard operation
stream-chat-react-native copied to clipboard

Optimistically Update Reactions within offline database and UI

Open vishalnarkhede opened this issue 3 years ago • 0 comments

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.

vishalnarkhede avatar Sep 06 '22 21:09 vishalnarkhede