Skip to content

Commit

Permalink
fix: unclickable with ref
Browse files Browse the repository at this point in the history
  • Loading branch information
arjendevos committed May 31, 2023
1 parent d1b9dc2 commit 0e3e72d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Link.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ export default function Link<T extends BaseScreen>({
return false;
}, [lastPreloadedAt]);

React.useEffect(() => {
lastPreloadedAt.current = null;
}, []);

const { inModal } = useModal();
const { push, replace, refresh, preload, preloadElement, currentRootKey } =
useNavigation();
Expand Down

0 comments on commit 0e3e72d

Please sign in to comment.