[Chat] Sync convo agent with shadow cache (#10827)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: DS Boyce <260543580+ds-boyce@users.noreply.github.com> Co-authored-by: Samuel Newman <mozzius@protonmail.com>
This commit is contained in:
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user