(queryInvalidator: QueryInvalidator)
| 428 | * adds a span with the mutation id |
| 429 | */ |
| 430 | export 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 | |
| 448 | export type ClientFrom<M extends RequestsAny> = RequestHandlers<never, never, M, ExtractModuleName<M>> |
| 449 |
no test coverage detected
searching dependent graphs…