Fix network spam with modified deps array

This commit is contained in:
Ian Philips 2022-07-15 07:28:04 -06:00
parent 9c49f2e2d7
commit 47579e8509

View File

@ -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
}