@proscom/prostore-apollo-react
Advanced tools
Comparing version 0.1.1 to 0.1.2
import { DependencyList } from 'react'; | ||
import { IGraphqlQueryOptions, IGraphqlQueryStoreParams } from '@proscom/prostore-apollo'; | ||
import { ApolloClient } from 'apollo-client'; | ||
import { PartialKey } from '@proscom/prostore'; | ||
export declare type IUseGraphqlQueryOptions<Vars, Data> = PartialKey<IGraphqlQueryStoreParams<Vars, Data>, 'client'>; | ||
export interface IUseGraphqlQueryParams<Vars, Data> { | ||
@@ -8,3 +10,3 @@ /** Apollo Client instance to be used for data fetching, or its name for it to be injected from the context */ | ||
/** Query specification */ | ||
queryOptions?: IGraphqlQueryStoreParams<Vars, Data>; | ||
queryOptions?: IUseGraphqlQueryOptions<Vars, Data>; | ||
/** Query variables */ | ||
@@ -11,0 +13,0 @@ variables?: Vars; |
@@ -24,3 +24,3 @@ var __assign = (this && this.__assign) || function () { | ||
import { useContext, useMemo } from 'react'; | ||
import { GraphqlQueryStore, } from '@proscom/prostore-apollo'; | ||
import { GraphqlQueryStore } from '@proscom/prostore-apollo'; | ||
import { ProstoreSsrContext, useRequestStore } from '@proscom/prostore-react'; | ||
@@ -27,0 +27,0 @@ import { useContextApolloClient } from './ApolloClientsContext'; |
import { DependencyList } from 'react'; | ||
import { PartialKey } from '@proscom/prostore'; | ||
import { IGraphqlWatchQueryOptions, IGraphqlWatchQueryStoreParams } from '@proscom/prostore-apollo'; | ||
import { ApolloClient } from 'apollo-client'; | ||
export declare type IUseGraphqlWatchQueryOptions<Vars, Data> = PartialKey<IGraphqlWatchQueryStoreParams<Vars, Data>, 'client'>; | ||
export interface IUseGraphqlWatchQueryParams<Vars, Data> { | ||
@@ -8,3 +10,3 @@ /** Apollo Client instance to be used for data fetching, or its name for it to be injected from the context */ | ||
/** Query specification */ | ||
queryOptions?: IGraphqlWatchQueryStoreParams<Vars, Data>; | ||
queryOptions?: IUseGraphqlWatchQueryOptions<Vars, Data>; | ||
/** Query variables */ | ||
@@ -11,0 +13,0 @@ variables?: Vars; |
@@ -24,3 +24,3 @@ var __assign = (this && this.__assign) || function () { | ||
import { useContext, useMemo } from 'react'; | ||
import { GraphqlWatchQueryStore, } from '@proscom/prostore-apollo'; | ||
import { GraphqlWatchQueryStore } from '@proscom/prostore-apollo'; | ||
import { ProstoreSsrContext, useRequestStore } from '@proscom/prostore-react'; | ||
@@ -27,0 +27,0 @@ import { useContextApolloClient } from './ApolloClientsContext'; |
import { DependencyList } from 'react'; | ||
import { IGraphqlQueryOptions, IGraphqlQueryStoreParams } from '@proscom/prostore-apollo'; | ||
import { ApolloClient } from 'apollo-client'; | ||
import { PartialKey } from '@proscom/prostore'; | ||
export declare type IUseGraphqlQueryOptions<Vars, Data> = PartialKey<IGraphqlQueryStoreParams<Vars, Data>, 'client'>; | ||
export interface IUseGraphqlQueryParams<Vars, Data> { | ||
@@ -8,3 +10,3 @@ /** Apollo Client instance to be used for data fetching, or its name for it to be injected from the context */ | ||
/** Query specification */ | ||
queryOptions?: IGraphqlQueryStoreParams<Vars, Data>; | ||
queryOptions?: IUseGraphqlQueryOptions<Vars, Data>; | ||
/** Query variables */ | ||
@@ -11,0 +13,0 @@ variables?: Vars; |
import { DependencyList } from 'react'; | ||
import { PartialKey } from '@proscom/prostore'; | ||
import { IGraphqlWatchQueryOptions, IGraphqlWatchQueryStoreParams } from '@proscom/prostore-apollo'; | ||
import { ApolloClient } from 'apollo-client'; | ||
export declare type IUseGraphqlWatchQueryOptions<Vars, Data> = PartialKey<IGraphqlWatchQueryStoreParams<Vars, Data>, 'client'>; | ||
export interface IUseGraphqlWatchQueryParams<Vars, Data> { | ||
@@ -8,3 +10,3 @@ /** Apollo Client instance to be used for data fetching, or its name for it to be injected from the context */ | ||
/** Query specification */ | ||
queryOptions?: IGraphqlWatchQueryStoreParams<Vars, Data>; | ||
queryOptions?: IUseGraphqlWatchQueryOptions<Vars, Data>; | ||
/** Query variables */ | ||
@@ -11,0 +13,0 @@ variables?: Vars; |
{ | ||
"name": "@proscom/prostore-apollo-react", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "> TODO: description", | ||
@@ -29,5 +29,5 @@ "author": "Andrew Starostin <a.starostin@proscom.ru>", | ||
"dependencies": { | ||
"@proscom/prostore": "^0.1.0", | ||
"@proscom/prostore-apollo": "^0.1.1", | ||
"@proscom/prostore-react": "^0.1.0" | ||
"@proscom/prostore": "^0.1.2", | ||
"@proscom/prostore-apollo": "^0.1.2", | ||
"@proscom/prostore-react": "^0.1.2" | ||
}, | ||
@@ -45,3 +45,3 @@ "peerDependencies": { | ||
"sideEffects": false, | ||
"gitHead": "f4d1d57ee7c06979b8bf4a2dad362a6d4b1dd82b" | ||
"gitHead": "843db22013e3501b4a92cbae0b12367680a2f386" | ||
} |
@@ -1,10 +0,17 @@ | ||
import {DependencyList, useContext, useMemo} from 'react'; | ||
import { DependencyList, useContext, useMemo } from 'react'; | ||
import { | ||
GraphqlQueryStore, IGraphqlQueryOptions, | ||
IGraphqlQueryStoreParams, | ||
GraphqlQueryStore, | ||
IGraphqlQueryOptions, | ||
IGraphqlQueryStoreParams | ||
} from '@proscom/prostore-apollo'; | ||
import {ProstoreSsrContext, useRequestStore} from '@proscom/prostore-react'; | ||
import { ProstoreSsrContext, useRequestStore } from '@proscom/prostore-react'; | ||
import { useContextApolloClient } from './ApolloClientsContext'; | ||
import { ApolloClient } from 'apollo-client'; | ||
import { PartialKey } from '@proscom/prostore'; | ||
export type IUseGraphqlQueryOptions<Vars, Data> = PartialKey< | ||
IGraphqlQueryStoreParams<Vars, Data>, | ||
'client' | ||
>; | ||
export interface IUseGraphqlQueryParams<Vars, Data> { | ||
@@ -14,3 +21,3 @@ /** Apollo Client instance to be used for data fetching, or its name for it to be injected from the context */ | ||
/** Query specification */ | ||
queryOptions?: IGraphqlQueryStoreParams<Vars, Data>; | ||
queryOptions?: IUseGraphqlQueryOptions<Vars, Data>; | ||
/** Query variables */ | ||
@@ -17,0 +24,0 @@ variables?: Vars; |
@@ -1,10 +0,17 @@ | ||
import {DependencyList, useContext, useMemo} from 'react'; | ||
import { DependencyList, useContext, useMemo } from 'react'; | ||
import { PartialKey } from '@proscom/prostore'; | ||
import { | ||
GraphqlWatchQueryStore, IGraphqlWatchQueryOptions, | ||
IGraphqlWatchQueryStoreParams, | ||
GraphqlWatchQueryStore, | ||
IGraphqlWatchQueryOptions, | ||
IGraphqlWatchQueryStoreParams | ||
} from '@proscom/prostore-apollo'; | ||
import {ProstoreSsrContext, useRequestStore} from '@proscom/prostore-react'; | ||
import { ProstoreSsrContext, useRequestStore } from '@proscom/prostore-react'; | ||
import { useContextApolloClient } from './ApolloClientsContext'; | ||
import { ApolloClient } from 'apollo-client'; | ||
export type IUseGraphqlWatchQueryOptions<Vars, Data> = PartialKey< | ||
IGraphqlWatchQueryStoreParams<Vars, Data>, | ||
'client' | ||
>; | ||
export interface IUseGraphqlWatchQueryParams<Vars, Data> { | ||
@@ -14,7 +21,7 @@ /** Apollo Client instance to be used for data fetching, or its name for it to be injected from the context */ | ||
/** Query specification */ | ||
queryOptions?: IGraphqlWatchQueryStoreParams<Vars, Data>; | ||
queryOptions?: IUseGraphqlWatchQueryOptions<Vars, Data>; | ||
/** Query variables */ | ||
variables?: Vars; | ||
/** Additional query options */ | ||
options?: IGraphqlWatchQueryOptions<Vars, Data> | ||
options?: IGraphqlWatchQueryOptions<Vars, Data>; | ||
} | ||
@@ -21,0 +28,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45739
721