react-query
Version:
Hooks for managing, caching and syncing asynchronous and remote data in React
15 lines (14 loc) • 501 B
TypeScript
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;
children?: React.ReactNode;
}
export declare const QueryClientProvider: ({ client, contextSharing, children, }: QueryClientProviderProps) => JSX.Element;