prevent scroll to comment on rerender
This commit is contained in:
parent
aea8948c45
commit
d9dd4bc05b
|
@ -118,7 +118,7 @@ export default function Comment ({
|
||||||
ref.current.classList.add('outline-it')
|
ref.current.classList.add('outline-it')
|
||||||
}, 20)
|
}, 20)
|
||||||
}
|
}
|
||||||
}, [item])
|
}, [item.id, router.query.commentId])
|
||||||
|
|
||||||
const bottomedOut = depth === COMMENT_DEPTH_LIMIT
|
const bottomedOut = depth === COMMENT_DEPTH_LIMIT
|
||||||
const op = root.user.name === item.user.name
|
const op = root.user.name === item.user.name
|
||||||
|
|
Loading…
Reference in New Issue