(
mutationKey: MutationKey,
)
| 603 | } |
| 604 | |
| 605 | getMutationDefaults( |
| 606 | mutationKey: MutationKey, |
| 607 | ): OmitKeyof<MutationObserverOptions<any, any, any, any>, 'mutationKey'> { |
| 608 | const defaults = [...this.#mutationDefaults.values()] |
| 609 | |
| 610 | const result: OmitKeyof< |
| 611 | MutationObserverOptions<any, any, any, any>, |
| 612 | 'mutationKey' |
| 613 | > = {} |
| 614 | |
| 615 | defaults.forEach((queryDefault) => { |
| 616 | if (partialMatchKey(mutationKey, queryDefault.mutationKey)) { |
| 617 | Object.assign(result, queryDefault.defaultOptions) |
| 618 | } |
| 619 | }) |
| 620 | |
| 621 | return result |
| 622 | } |
| 623 | |
| 624 | defaultQueryOptions< |
| 625 | TQueryFnData = unknown, |
no test coverage detected