Download apps/web/src/app/providers/QueryProvider.tsx from hunian003/message: direct link, hf CLI and curl.
- Browser
- Download file 408 Bytes
-
https://huggingface.co/spaces/hunian003/message/resolve/main/apps/web/src/app/providers/QueryProvider.tsx
- Command line
-
hf download hf://spaces/hunian003/message/apps/web/src/app/providers/QueryProvider.tsx
-
curl -L -o QueryProvider.tsx https://huggingface.co/spaces/hunian003/message/resolve/main/apps/web/src/app/providers/QueryProvider.tsx
408 Bytes
| import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; | |
| import { ReactNode } from 'react'; | |
| const queryClient = new QueryClient({ | |
| defaultOptions: { | |
| queries: { | |
| retry: 1, | |
| refetchOnWindowFocus: false, | |
| }, | |
| }, | |
| }); | |
| export function QueryProvider({ children }: { children: ReactNode }) { | |
| return <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>; | |
| } |