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

Function getGetCategoryMutationOptions

src/api/labels/labels.ts:164–181  ·  view source on GitHub ↗
(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof getCategory>>, TError,{data: GetCategoryBody}, TContext>, }
)

Source from the content-addressed store, hash-verified

162
163
164export const getGetCategoryMutationOptions = <TError = unknown,
165 TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof getCategory>>, TError,{data: GetCategoryBody}, TContext>, }
166): UseMutationOptions<Awaited<ReturnType<typeof getCategory>>, TError,{data: GetCategoryBody}, TContext> => {
167 const {mutation: mutationOptions} = options ?? {};
168
169
170
171
172 const mutationFn: MutationFunction<Awaited<ReturnType<typeof getCategory>>, {data: GetCategoryBody}> = (props) => {
173 const {data} = props ?? {};
174
175 return getCategory(data,)
176 }
177
178
179
180
181 return { mutationFn, ...mutationOptions }}
182
183 export type GetCategoryMutationResult = NonNullable<Awaited<ReturnType<typeof getCategory>>>
184 export type GetCategoryMutationBody = GetCategoryBody

Callers 1

useGetCategoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected