(
mutationKey: MutationKey,
options: MutationObserverOptions<any, any, any, any>
)
| 556 | } |
| 557 | |
| 558 | setMutationDefaults( |
| 559 | mutationKey: MutationKey, |
| 560 | options: MutationObserverOptions<any, any, any, any> |
| 561 | ): void { |
| 562 | const result = this.mutationDefaults.find( |
| 563 | x => hashQueryKey(mutationKey) === hashQueryKey(x.mutationKey) |
| 564 | ) |
| 565 | if (result) { |
| 566 | result.defaultOptions = options |
| 567 | } else { |
| 568 | this.mutationDefaults.push({ mutationKey, defaultOptions: options }) |
| 569 | } |
| 570 | } |
| 571 | |
| 572 | getMutationDefaults( |
| 573 | mutationKey?: MutationKey |
nothing calls this directly
no test coverage detected