Fix network spam with modified deps array
This commit is contained in:
parent
9c49f2e2d7
commit
47579e8509
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user