Hardening: session expiry and sealed handling, request timeout, list states, a11y, tested admin policy, security headers, README
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
265c618884
commit
a63f7c0faa
30 files changed
+623
-76
No files matched your search
@@ -0,0 +1,7 @@
|
||||
import { QueryClientProvider, type QueryClient } from '@tanstack/react-query'
|
||||
import type { ReactNode } from 'react'
|
||||
import { testQueryClient } from './queryClient'
|
||||
|
||||
export function Providers({ children, client }: { children: ReactNode; client?: QueryClient }) {
|
||||
return <QueryClientProvider client={client ?? testQueryClient()}>{children}</QueryClientProvider>
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
import { QueryClient } from '@tanstack/react-query'
|
||||
|
||||
export const testQueryClient = () => new QueryClient({ defaultOptions: { queries: { retry: false } } })
|
||||
Reference in new issue
Block a user