Skip to content

Commit

Permalink
fix: add missing ablyId argument to useConnectionStateListener in…
Browse files Browse the repository at this point in the history
… `usePresence` implementation
  • Loading branch information
ttypic committed Jul 29, 2024
1 parent f606332 commit 6ccd0a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform/react-hooks/src/hooks/usePresence.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function usePresence<T = any>(
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.
Expand Down

0 comments on commit 6ccd0a8

Please sign in to comment.