(
queryKey: QueryKey,
options: QueryObserverOptions<any, any, any, any>
)
| 533 | } |
| 534 | |
| 535 | setQueryDefaults( |
| 536 | queryKey: QueryKey, |
| 537 | options: QueryObserverOptions<any, any, any, any> |
| 538 | ): void { |
| 539 | const result = this.queryDefaults.find( |
| 540 | x => hashQueryKey(queryKey) === hashQueryKey(x.queryKey) |
| 541 | ) |
| 542 | if (result) { |
| 543 | result.defaultOptions = options |
| 544 | } else { |
| 545 | this.queryDefaults.push({ queryKey, defaultOptions: options }) |
| 546 | } |
| 547 | } |
| 548 | |
| 549 | getQueryDefaults( |
| 550 | queryKey?: QueryKey |
nothing calls this directly
no test coverage detected