(
options?: T,
)
| 703 | } |
| 704 | |
| 705 | defaultMutationOptions<T extends MutationOptions<any, any, any, any>>( |
| 706 | options?: T, |
| 707 | ): T { |
| 708 | if (options?._defaulted) { |
| 709 | return options |
| 710 | } |
| 711 | return { |
| 712 | ...this.#defaultOptions.mutations, |
| 713 | ...(options?.mutationKey && |
| 714 | this.getMutationDefaults(options.mutationKey)), |
| 715 | ...options, |
| 716 | _defaulted: true, |
| 717 | } as T |
| 718 | } |
| 719 | |
| 720 | clear(): void { |
| 721 | this.#queryCache.clear() |
no test coverage detected