From 67691477a92794e8c5593a5f2dfb3691c895b57f Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 29 Jul 2023 19:51:22 -0400 Subject: [PATCH] fix: Hover card timer should reset on url change --- app/components/HoverPreview/HoverPreview.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/components/HoverPreview/HoverPreview.tsx b/app/components/HoverPreview/HoverPreview.tsx index d34bedd85..3aa77c6fa 100644 --- a/app/components/HoverPreview/HoverPreview.tsx +++ b/app/components/HoverPreview/HoverPreview.tsx @@ -48,6 +48,8 @@ function HoverPreviewInternal({ element, onClose }: Props) { React.useEffect(() => { if (url) { stopOpenTimer(); + setVisible(false); + void request(); } }, [url, request]);