Skip to content

Commit

Permalink
fix: proper hook deps
Browse files Browse the repository at this point in the history
  • Loading branch information
isekovanic committed Oct 14, 2024
1 parent 6a0ccc1 commit 4b1eb38
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ export const useChannelPreviewDisplayPresence = <

useEffect(() => {
setDisplayPresence(getChannelPreviewDisplayPresence(channel, client));
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [channelMemberOnline, forceUpdate]);
}, [channel, channelMemberOnline, client, forceUpdate]);

return displayPresence;
};

0 comments on commit 4b1eb38

Please sign in to comment.