Open History to see the last commit
1import {
2 provideHttpClient,
3 withFetch,
4 withInterceptors,
5} from '@angular/common/http'
6import { QueryClient, provideTanStackQuery } from '@tanstack/angular-query'
7import { withDevtools } from '@tanstack/angular-query-devtools'
8import { autocompleteMockInterceptor } from './api/autocomplete-mock.interceptor'
9import type { ApplicationConfig } from '@angular/core'
10β
11export const appConfig: ApplicationConfig = {
12 providers: [
13 provideHttpClient(
14 withFetch(),
15 withInterceptors([autocompleteMockInterceptor]),
16 ),
17 provideTanStackQuery(
18 () =>
19 new QueryClient({
20 defaultOptions: {
21 queries: {
22 gcTime: 1000 * 60 * 60 * 24, // 24 hours
23 },
24 },
25 }),
26 withDevtools(),
27 ),
28 ],
29}