MCPcopy Create free account
hub / github.com/effect-app/libs / useMutationInt

Function useMutationInt

packages/vue/src/makeClient.ts:430–446  ·  view source on GitHub ↗
(queryInvalidator: QueryInvalidator)

Source from the content-addressed store, hash-verified

428 * adds a span with the mutation id
429 */
430export const useMutationInt = (queryInvalidator: QueryInvalidator): typeof _useMutation => {
431 const _useMutation = useMakeMutation(queryInvalidator)
432 return (<
433 I,
434 E,
435 A,
436 R,
437 Request extends Req,
438 Name extends string
439 >(
440 self: RequestHandlerWithInput<I, A, E, R, Request, Name>
441 ) =>
442 Object.assign(
443 wrapWithSpan(self, _useMutation(self as any)),
444 { id: self.id }
445 )) as any
446}
447
448export type ClientFrom<M extends RequestsAny> = RequestHandlers<never, never, M, ExtractModuleName<M>>
449

Callers 1

useMutationFunction · 0.85

Calls 2

useMakeMutationFunction · 0.90
wrapWithSpanFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…