Fix oopsie (#3538)

zio/stable
dan 2024-04-13 18:40:50 +01:00 committed by GitHub
parent 228d947a84
commit 2164d32295
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ export function ProfileHoverCardInner(props: ProfileHoverCardProps) {
const prefetchedProfile = React.useRef(false) const prefetchedProfile = React.useRef(false)
const prefetchIfNeeded = React.useCallback(async () => { const prefetchIfNeeded = React.useCallback(async () => {
if (!prefetchedProfile.current) { if (!prefetchedProfile.current) {
prefetchedProfile.current = true
prefetchProfileQuery(props.did) prefetchProfileQuery(props.did)
} }
}, [prefetchProfileQuery, props.did]) }, [prefetchProfileQuery, props.did])