react-code-dataset
/
react-query
/examples
/angular
/infinite-query-with-max-pages
/src
/app
/app.config.ts
| import { | |
| provideHttpClient, | |
| withFetch, | |
| withInterceptors, | |
| } from '@angular/common/http' | |
| import { | |
| QueryClient, | |
| provideTanStackQuery, | |
| withDevtools, | |
| } from '@tanstack/angular-query-experimental' | |
| import { projectsMockInterceptor } from './api/projects-mock.interceptor' | |
| import type { ApplicationConfig } from '@angular/core' | |
| export const appConfig: ApplicationConfig = { | |
| providers: [ | |
| provideHttpClient(withInterceptors([projectsMockInterceptor]), withFetch()), | |
| provideTanStackQuery( | |
| new QueryClient({ | |
| defaultOptions: { | |
| queries: { | |
| gcTime: 1000 * 60 * 60 * 24, // 24 hours | |
| }, | |
| }, | |
| }), | |
| withDevtools(), | |
| ), | |
| ], | |
| } | |