(
mutationKey: MutationKey,
)
| 527 | } |
| 528 | |
| 529 | getMutationDefaults( |
| 530 | mutationKey: MutationKey, |
| 531 | ): OmitKeyof<MutationObserverOptions<any, any, any, any>, 'mutationKey'> { |
| 532 | const defaults = [...this.#mutationDefaults.values()] |
| 533 | |
| 534 | const result: OmitKeyof< |
| 535 | MutationObserverOptions<any, any, any, any>, |
| 536 | 'mutationKey' |
| 537 | > = {} |
| 538 | |
| 539 | defaults.forEach((queryDefault) => { |
| 540 | if (partialMatchKey(mutationKey, queryDefault.mutationKey)) { |
| 541 | Object.assign(result, queryDefault.defaultOptions) |
| 542 | } |
| 543 | }) |
| 544 | |
| 545 | return result |
| 546 | } |
| 547 | |
| 548 | defaultQueryOptions< |
| 549 | TQueryFnData = unknown, |
no test coverage detected