Fix forever cache of actor status

This commit is contained in:
Eric Bailey
2026-06-09 15:52:56 -05:00
committed by Samuel Newman
parent ffaa796473
commit e592fa7e49
+2 -2
View File
@@ -12,6 +12,8 @@ export function useChatActorStatusQuery() {
const agent = useAgent()
return useQuery({
gcTime: STALE.INFINITY,
staleTime: STALE.SECONDS.FIFTEEN,
queryKey: chatActorStatusQueryKey(),
queryFn: async () => {
const {data} = await agent.chat.bsky.actor.getStatus(
@@ -21,7 +23,5 @@ export function useChatActorStatusQuery() {
return data
},
staleTime: STALE.INFINITY,
gcTime: STALE.INFINITY,
})
}