Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

app.config.ts

16 lines587 Bytes

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 { projectsMockInterceptor } from './interceptor/projects-mock.interceptor'
9import type { ApplicationConfig } from '@angular/core'
10​
11export const appConfig: ApplicationConfig = {
12 providers: [
13 provideHttpClient(withInterceptors([projectsMockInterceptor]), withFetch()),
14 provideTanStackQuery(() => new QueryClient(), withDevtools()),
15 ],