fix trigger on every render eslint warning
This commit is contained in:
parent
bb6a63a230
commit
e91a859c5c
|
@ -93,7 +93,8 @@ export function GroupChat(props: {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// is mobile?
|
// is mobile?
|
||||||
if (width && width > 720) focusInput()
|
if (width && width > 720) focusInput()
|
||||||
}, [width, focusInput])
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
}, [width])
|
||||||
|
|
||||||
function onReplyClick(comment: Comment) {
|
function onReplyClick(comment: Comment) {
|
||||||
setReplyToUser({ id: comment.userId, username: comment.userUsername })
|
setReplyToUser({ id: comment.userId, username: comment.userUsername })
|
||||||
|
|
Loading…
Reference in New Issue
Block a user