Fix oopsie (#3538)
This commit is contained in:
parent
228d947a84
commit
2164d32295
1 changed files with 1 additions and 0 deletions
|
@ -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])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue