(
options?: T,
)
| 615 | } |
| 616 | |
| 617 | defaultMutationOptions<T extends MutationOptions<any, any, any, any>>( |
| 618 | options?: T, |
| 619 | ): T { |
| 620 | if (options?._defaulted) { |
| 621 | return options |
| 622 | } |
| 623 | return { |
| 624 | ...this.#defaultOptions.mutations, |
| 625 | ...(options?.mutationKey && |
| 626 | this.getMutationDefaults(options.mutationKey)), |
| 627 | ...options, |
| 628 | _defaulted: true, |
| 629 | } as T |
| 630 | } |
| 631 | |
| 632 | clear(): void { |
| 633 | this.#queryCache.clear() |
no test coverage detected