(
queryKey: QueryKey,
)
| 479 | } |
| 480 | |
| 481 | getQueryDefaults( |
| 482 | queryKey: QueryKey, |
| 483 | ): OmitKeyof<QueryObserverOptions<any, any, any, any, any>, 'queryKey'> { |
| 484 | const defaults = [...this.#queryDefaults.values()] |
| 485 | |
| 486 | const result: OmitKeyof< |
| 487 | QueryObserverOptions<any, any, any, any, any>, |
| 488 | 'queryKey' |
| 489 | > = {} |
| 490 | |
| 491 | defaults.forEach((queryDefault) => { |
| 492 | if (partialMatchKey(queryKey, queryDefault.queryKey)) { |
| 493 | Object.assign(result, queryDefault.defaultOptions) |
| 494 | } |
| 495 | }) |
| 496 | return result |
| 497 | } |
| 498 | |
| 499 | setMutationDefaults< |
| 500 | TData = unknown, |
no test coverage detected