ably-js icon indicating copy to clipboard operation
ably-js copied to clipboard

Store presence data inside `ChannelProvider`'s context, so we don't have to refetch presence data for every listener

Open VeskeR opened this issue 11 months ago • 0 comments

See PR comment https://github.com/ably/ably-js/pull/1674#discussion_r1517565591. See code in question from usePresence hook (or usePresenceListener after https://github.com/ably/ably-js/pull/1674 is merged): https://github.com/ably/ably-js/blob/integration/v2/src/platform/react-hooks/src/hooks/usePresence.ts#L41C1-L51C58

┆Issue is synchronized with this Jira Story by Unito

VeskeR avatar Mar 12 '24 23:03 VeskeR