UNPKG

@tanstack/react-query

Version:

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

13 lines (10 loc) 528 B
import * as React from 'react'; import { QueryClient } from '@tanstack/query-core'; declare const QueryClientContext: React.Context<QueryClient | undefined>; declare const useQueryClient: (queryClient?: QueryClient) => QueryClient; type QueryClientProviderProps = { client: QueryClient; children?: React.ReactNode; }; declare const QueryClientProvider: ({ client, children, }: QueryClientProviderProps) => JSX.Element; export { QueryClientContext, QueryClientProvider, type QueryClientProviderProps, useQueryClient };