From 0e3e72ddf26791d2372c866222871bee75c31065 Mon Sep 17 00:00:00 2001 From: Arjen de Vos Date: Wed, 31 May 2023 08:19:09 +0200 Subject: [PATCH] fix: unclickable with ref --- src/Link.web.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Link.web.tsx b/src/Link.web.tsx index f348b4b..8dc355c 100644 --- a/src/Link.web.tsx +++ b/src/Link.web.tsx @@ -36,6 +36,10 @@ export default function Link({ return false; }, [lastPreloadedAt]); + React.useEffect(() => { + lastPreloadedAt.current = null; + }, []); + const { inModal } = useModal(); const { push, replace, refresh, preload, preloadElement, currentRootKey } = useNavigation();