diff options
author | Eric Bailey <git@esb.lol> | 2024-06-12 21:44:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-13 04:44:06 +0200 |
commit | d989128e5b086fc60aea01ba991039c4e66165c6 (patch) | |
tree | 86860609e0fed2f0e66ca64813a9f34ce6127e84 /src/state/queries | |
parent | 247af5aee99ba5020b8bee9ccfa0f02bb8c4084a (diff) | |
download | voidsky-d989128e5b086fc60aea01ba991039c4e66165c6.tar.zst |
Set profile hover prefetch stale time to 30s (#4417)
* Set prefetch stale time to 30s * Run prefetch on mouseOver * Only prefetch once on mousemove
Diffstat (limited to 'src/state/queries')
-rw-r--r-- | src/state/queries/profile.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/state/queries/profile.ts b/src/state/queries/profile.ts index 7cc9f6911..6f7f2de79 100644 --- a/src/state/queries/profile.ts +++ b/src/state/queries/profile.ts @@ -94,6 +94,7 @@ export function usePrefetchProfileQuery() { const prefetchProfileQuery = useCallback( async (did: string) => { await queryClient.prefetchQuery({ + staleTime: STALE.SECONDS.THIRTY, queryKey: RQKEY(did), queryFn: async () => { const res = await agent.getProfile({actor: did || ''}) |