UNPKG

@tanstack/vue-query

Version:

Hooks for managing, caching and syncing asynchronous and remote data in Vue

11 lines (8 loc) 245 B
import { vi } from 'vitest' import { QueryClient } from '../queryClient' const queryClient = new QueryClient({ defaultOptions: { queries: { retry: false, gcTime: Infinity }, }, }) export const useQueryClient = vi.fn(() => queryClient)