From 47579e850908f94be7b62bdd68050e19f8c2a131 Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Fri, 15 Jul 2022 07:28:04 -0600 Subject: [PATCH] Fix network spam with modified deps array --- web/hooks/use-group.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/hooks/use-group.ts b/web/hooks/use-group.ts index 4f968005..892efda0 100644 --- a/web/hooks/use-group.ts +++ b/web/hooks/use-group.ts @@ -51,7 +51,8 @@ export const useMemberGroups = ( }, sort ) - }, [options?.withChatEnabled, sort, userId]) + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [options?.withChatEnabled, sort?.by, userId]) return memberGroups }