Group Clops Feature Branch (#10360)
Co-authored-by: DS Boyce <260543580+ds-boyce@users.noreply.github.com> Co-authored-by: Samuel Newman <mozzius@protonmail.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -7,7 +7,10 @@ import {STALE} from '..'
|
||||
const RQKEY_ROOT = 'convo-availability'
|
||||
export const RQKEY = (did: string) => [RQKEY_ROOT, did]
|
||||
|
||||
export function useGetConvoAvailabilityQuery(did: string) {
|
||||
export function useGetConvoAvailabilityQuery(
|
||||
did: string,
|
||||
{enabled = true}: {enabled?: boolean} = {},
|
||||
) {
|
||||
const agent = useAgent()
|
||||
|
||||
return useQuery({
|
||||
@@ -21,5 +24,6 @@ export function useGetConvoAvailabilityQuery(did: string) {
|
||||
return data
|
||||
},
|
||||
staleTime: STALE.INFINITY,
|
||||
enabled,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user