chore: bootstrap HemHub web (Iteration 0)
This commit is contained in:
13
src/app/providers.tsx
Normal file
13
src/app/providers.tsx
Normal file
@ -0,0 +1,13 @@
|
||||
// src/app/providers.tsx
|
||||
import { type PropsWithChildren, useState } from 'react'
|
||||
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
|
||||
|
||||
export function AppProviders({ children }: PropsWithChildren) {
|
||||
const [client] = useState(
|
||||
() =>
|
||||
new QueryClient({
|
||||
defaultOptions: { queries: { refetchOnWindowFocus: false, retry: 1 } },
|
||||
})
|
||||
)
|
||||
return <QueryClientProvider client={client}>{children}</QueryClientProvider>
|
||||
}
|
||||
Reference in New Issue
Block a user