| import { | |
| provideHttpClient, | |
| withFetch, | |
| withInterceptors, | |
| } from '@angular/common/http' | |
| import { | |
| QueryClient, | |
| provideTanStackQuery, | |
| withDevtools, | |
| } from '@tanstack/angular-query-experimental' | |
| import { autocompleteMockInterceptor } from './api/autocomplete-mock.interceptor' | |
| import type { ApplicationConfig } from '@angular/core' | |
| export const appConfig: ApplicationConfig = { | |
| providers: [ | |
| provideHttpClient( | |
| withFetch(), | |
| withInterceptors([autocompleteMockInterceptor]), | |
| ), | |
| provideTanStackQuery( | |
| new QueryClient({ | |
| defaultOptions: { | |
| queries: { | |
| gcTime: 1000 * 60 * 60 * 24, // 24 hours | |
| }, | |
| }, | |
| }), | |
| withDevtools(), | |
| ), | |
| ], | |
| } | |