(
queryKey: QueryKey,
)
| 567 | } |
| 568 | |
| 569 | getQueryDefaults( |
| 570 | queryKey: QueryKey, |
| 571 | ): OmitKeyof<QueryObserverOptions<any, any, any, any, any>, 'queryKey'> { |
| 572 | const defaults = [...this.#queryDefaults.values()] |
| 573 | |
| 574 | const result: OmitKeyof< |
| 575 | QueryObserverOptions<any, any, any, any, any>, |
| 576 | 'queryKey' |
| 577 | > = {} |
| 578 | |
| 579 | defaults.forEach((queryDefault) => { |
| 580 | if (partialMatchKey(queryKey, queryDefault.queryKey)) { |
| 581 | Object.assign(result, queryDefault.defaultOptions) |
| 582 | } |
| 583 | }) |
| 584 | return result |
| 585 | } |
| 586 | |
| 587 | setMutationDefaults< |
| 588 | TData = unknown, |
no test coverage detected