(
queryKey: QueryKey,
)
| 491 | } |
| 492 | |
| 493 | getQueryDefaults( |
| 494 | queryKey: QueryKey, |
| 495 | ): OmitKeyof<QueryObserverOptions<any, any, any, any, any>, 'queryKey'> { |
| 496 | const defaults = [...this.#queryDefaults.values()] |
| 497 | |
| 498 | const result: OmitKeyof< |
| 499 | QueryObserverOptions<any, any, any, any, any>, |
| 500 | 'queryKey' |
| 501 | > = {} |
| 502 | |
| 503 | defaults.forEach((queryDefault) => { |
| 504 | if (partialMatchKey(queryKey, queryDefault.queryKey)) { |
| 505 | Object.assign(result, queryDefault.defaultOptions) |
| 506 | } |
| 507 | }) |
| 508 | return result |
| 509 | } |
| 510 | |
| 511 | setMutationDefaults< |
| 512 | TData = unknown, |
no test coverage detected