about summary refs log tree commit diff
path: root/src/state/queries/suggested-follows.ts
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-08-08 09:19:51 -0500
committerGitHub <noreply@github.com>2024-08-08 09:19:51 -0500
commit1e3b2d6f42839501ce47f88a19ffd477f1e2f82d (patch)
treead6d439aa5d61a8ebf69e72be6eed579caafcd3f /src/state/queries/suggested-follows.ts
parentaf5262682eac63a54fb2f6351a5894b647251ab4 (diff)
downloadvoidsky-1e3b2d6f42839501ce47f88a19ffd477f1e2f82d.tar.zst
ALF suggested follows in profile header (#4828)
* Refactor ProfileHeaderSuggestedFollows

* Load fresh data every time

* Oops, missed a file

* Update ProfileCard.Link usage, tweak copy
Diffstat (limited to 'src/state/queries/suggested-follows.ts')
-rw-r--r--src/state/queries/suggested-follows.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/state/queries/suggested-follows.ts b/src/state/queries/suggested-follows.ts
index a1244721a..f5d51a974 100644
--- a/src/state/queries/suggested-follows.ts
+++ b/src/state/queries/suggested-follows.ts
@@ -106,6 +106,7 @@ export function useSuggestedFollowsQuery(options?: SuggestedFollowsOptions) {
 export function useSuggestedFollowsByActorQuery({did}: {did: string}) {
   const agent = useAgent()
   return useQuery<AppBskyGraphGetSuggestedFollowsByActor.OutputSchema, Error>({
+    gcTime: 0,
     queryKey: suggestedFollowsByActorQueryKey(did),
     queryFn: async () => {
       const res = await agent.app.bsky.graph.getSuggestedFollowsByActor({