Skip to content

Commit

Permalink
Fix oopsie (#3538)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored Apr 13, 2024
1 parent 228d947 commit 2164d32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/ProfileHoverCard/index.web.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export function ProfileHoverCardInner(props: ProfileHoverCardProps) {
const prefetchedProfile = React.useRef(false)
const prefetchIfNeeded = React.useCallback(async () => {
if (!prefetchedProfile.current) {
prefetchedProfile.current = true
prefetchProfileQuery(props.did)
}
}, [prefetchProfileQuery, props.did])
Expand Down

0 comments on commit 2164d32

Please sign in to comment.