MCPcopy Create free account
hub / github.com/WardAnalytics/WardGraph / useGetLabels

Function useGetLabels

src/api/labels/labels.ts:81–93  ·  view source on GitHub ↗
(
 address: string, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof getLabels>>, TError, TData>, }

  )

Source from the content-addressed store, hash-verified

79export type GetLabelsQueryError = unknown
80
81export const useGetLabels = <TData = Awaited<ReturnType<typeof getLabels>>, TError = unknown>(
82 address: string, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof getLabels>>, TError, TData>, }
83
84 ): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {
85
86 const queryOptions = getGetLabelsQueryOptions(address,options)
87
88 const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
89
90 query.queryKey = queryOptions.queryKey ;
91
92 return query;
93}
94
95
96

Callers 1

TransactionRowFunction · 0.90

Calls 1

getGetLabelsQueryOptionsFunction · 0.85

Tested by

no test coverage detected