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.