Fix "update in progress" error when removing highlight ranges (#21024)

GitOrigin-RevId: 025e69f10b6010fe978ac57838ae17c113358633
This commit is contained in:
Domagoj Kriskovic 2024-10-11 13:07:18 +02:00 committed by Copybot
parent ba0de4f1e9
commit e00831761a

View file

@ -70,7 +70,9 @@ export const ReviewPanelEntry: FC<{
useEffect(() => {
return () => {
if (hoverRanges) {
setTimeout(() => {
view.dispatch(clearHighlightRanges(op))
})
}
}
}, []) // eslint-disable-line react-hooks/exhaustive-deps