(
mutationKey: MutationKey,
)
| 515 | } |
| 516 | |
| 517 | getMutationDefaults( |
| 518 | mutationKey: MutationKey, |
| 519 | ): OmitKeyof<MutationObserverOptions<any, any, any, any>, 'mutationKey'> { |
| 520 | const defaults = [...this.#mutationDefaults.values()] |
| 521 | |
| 522 | const result: OmitKeyof< |
| 523 | MutationObserverOptions<any, any, any, any>, |
| 524 | 'mutationKey' |
| 525 | > = {} |
| 526 | |
| 527 | defaults.forEach((queryDefault) => { |
| 528 | if (partialMatchKey(mutationKey, queryDefault.mutationKey)) { |
| 529 | Object.assign(result, queryDefault.defaultOptions) |
| 530 | } |
| 531 | }) |
| 532 | |
| 533 | return result |
| 534 | } |
| 535 | |
| 536 | defaultQueryOptions< |
| 537 | TQueryFnData = unknown, |
no test coverage detected