prevent scroll to comment on rerender

This commit is contained in:
keyan 2023-08-05 12:13:15 -05:00
parent aea8948c45
commit d9dd4bc05b
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ export default function Comment ({
ref.current.classList.add('outline-it')
}, 20)
}
}, [item])
}, [item.id, router.query.commentId])
const bottomedOut = depth === COMMENT_DEPTH_LIMIT
const op = root.user.name === item.user.name