Fix forever cache of actor status
This commit is contained in:
committed by
Samuel Newman
parent
ffaa796473
commit
e592fa7e49
@@ -12,6 +12,8 @@ export function useChatActorStatusQuery() {
|
|||||||
const agent = useAgent()
|
const agent = useAgent()
|
||||||
|
|
||||||
return useQuery({
|
return useQuery({
|
||||||
|
gcTime: STALE.INFINITY,
|
||||||
|
staleTime: STALE.SECONDS.FIFTEEN,
|
||||||
queryKey: chatActorStatusQueryKey(),
|
queryKey: chatActorStatusQueryKey(),
|
||||||
queryFn: async () => {
|
queryFn: async () => {
|
||||||
const {data} = await agent.chat.bsky.actor.getStatus(
|
const {data} = await agent.chat.bsky.actor.getStatus(
|
||||||
@@ -21,7 +23,5 @@ export function useChatActorStatusQuery() {
|
|||||||
|
|
||||||
return data
|
return data
|
||||||
},
|
},
|
||||||
staleTime: STALE.INFINITY,
|
|
||||||
gcTime: STALE.INFINITY,
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user