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

app.config.ts

15 lines481 Bytes

1import {
2 ApplicationConfig,
3 provideBrowserGlobalErrorListeners,
4 provideZonelessChangeDetection,
5} from '@angular/core'
6import { provideTanStackQuery, QueryClient } from '@tanstack/angular-query'
7import { withDevtools } from '@tanstack/angular-query-devtools'
8​
9export const appConfig: ApplicationConfig = {
10 providers: [
11 provideBrowserGlobalErrorListeners(),
12 provideZonelessChangeDetection(),
13 provideTanStackQuery(() => new QueryClient(), withDevtools()),
14 ],