chore: clean git cache

This commit is contained in:
GitHub Actions
2026-01-02 01:01:54 +00:00
parent aae55a8ae9
commit 5ea207ab47
290 changed files with 62353 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
}