about summary refs log tree commit diff
path: root/src/components/ProfileHoverCard
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-04-13 18:40:50 +0100
committerGitHub <noreply@github.com>2024-04-13 18:40:50 +0100
commit2164d322953768a9b54b1fb1a237a7f12b36769f (patch)
tree235adade6f690d9aaba20d1c4482949601f3dfa5 /src/components/ProfileHoverCard
parent228d947a8420f2c3a105162dc373267115be574d (diff)
downloadvoidsky-2164d322953768a9b54b1fb1a237a7f12b36769f.tar.zst
Fix oopsie (#3538)
Diffstat (limited to 'src/components/ProfileHoverCard')
-rw-r--r--src/components/ProfileHoverCard/index.web.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/components/ProfileHoverCard/index.web.tsx b/src/components/ProfileHoverCard/index.web.tsx
index 9683244a6..2ab5eace5 100644
--- a/src/components/ProfileHoverCard/index.web.tsx
+++ b/src/components/ProfileHoverCard/index.web.tsx
@@ -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])