react-apollo-hooks
Version:
Use [Apollo Client](https://github.com/apollographql/apollo-client) as React [hooks](https://reactjs.org/docs/hooks-intro.html).
4 lines (3 loc) • 396 B
TypeScript
import ApolloClient, { ObservableQuery, WatchQueryOptions } from 'apollo-client';
export declare function getCachedObservableQuery<TData, TVariables>(client: ApolloClient<any>, options: WatchQueryOptions<TVariables>): ObservableQuery<TData, TVariables>;
export declare function invalidateCachedObservableQuery<TVariables>(client: ApolloClient<any>, options: WatchQueryOptions<TVariables>): void;