From 6ccd0a8368dfd6b9757957d8448a11f82f9c6952 Mon Sep 17 00:00:00 2001 From: evgeny Date: Mon, 29 Jul 2024 08:50:36 +0100 Subject: [PATCH] fix: add missing `ablyId` argument to `useConnectionStateListener` in `usePresence` implementation --- src/platform/react-hooks/src/hooks/usePresence.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/react-hooks/src/hooks/usePresence.ts b/src/platform/react-hooks/src/hooks/usePresence.ts index d301c336a..42c7a6b6f 100644 --- a/src/platform/react-hooks/src/hooks/usePresence.ts +++ b/src/platform/react-hooks/src/hooks/usePresence.ts @@ -48,7 +48,7 @@ export function usePresence( const [connectionState, setConnectionState] = useState(ably.connection.state); useConnectionStateListener((stateChange) => { setConnectionState(stateChange.current); - }); + }, params.ablyId); // similar to connection states, we should only attempt to enter presence when in certain // channel states.