Function: createQueryLoader

createQueryLoader<TQuery>(preloadableRequest, initialQueryReference?): [Accessor<PreloadedQuery<TQuery> | null | undefined>, (variables: VariablesOf<TQuery>, options?: LoadQueryOptions & { __environment?: IEnvironment | null }) => void, DisposeFn]

Type parameters

Name Type
TQuery extends OperationType

Parameters

Name Type
preloadableRequest GraphQLTaggedNode | PreloadableConcreteRequest<TQuery>
initialQueryReference? null | PreloadedQuery<TQuery>

Returns

[Accessor<PreloadedQuery<TQuery> | null | undefined>, (variables: VariablesOf<TQuery>, options?: LoadQueryOptions & { __environment?: IEnvironment | null }) => void, DisposeFn]