Skip to content

Instantly share code, notes, and snippets.

@warodri-sendbird
Created September 3, 2021 08:28
Show Gist options
  • Save warodri-sendbird/b2f1150d50cb1017883873850d30a349 to your computer and use it in GitHub Desktop.
Save warodri-sendbird/b2f1150d50cb1017883873850d30a349 to your computer and use it in GitHub Desktop.
const refresh = () => {
channel.markAsRead();
setQuery(channel.createPreviousMessageListQuery());
dispatch({ type: 'refresh' });
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment