UNPKG

react-query

Version:

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

14 lines (13 loc) 423 B
import React from 'react'; import { QueryClient } from '../core'; declare global { interface Window { ReactQueryClientContext?: React.Context<QueryClient | undefined>; } } export declare const useQueryClient: () => QueryClient; export interface QueryClientProviderProps { client: QueryClient; contextSharing?: boolean; } export declare const QueryClientProvider: React.FC<QueryClientProviderProps>;