chore: clean .gitignore cache

This commit is contained in:
GitHub Actions
2026-01-26 19:22:05 +00:00
parent e5f0fec5db
commit f64e3feef8
1448 changed files with 468101 additions and 0 deletions
@@ -0,0 +1,18 @@
import { QueryClient, QueryKey } from '@tanstack/react-query'
interface InitialDataEntry {
key: QueryKey
data: unknown
}
export function createTestQueryClient(initialData: InitialDataEntry[] = []) {
const client = new QueryClient({
defaultOptions: {
queries: { retry: false, gcTime: Infinity },
mutations: { retry: false },
},
})
initialData.forEach(({ key, data }) => client.setQueryData(key, data))
return client
}