case class UseLazyQuery[T, TVars <: Object]() extends ApolloClientOptionsMaker[T, TVars] with Product with Serializable
Instantiate to avoid all the type parameter noise.
- Alphabetic
- By Inheritance
- UseLazyQuery
- Serializable
- Product
- Equals
- ApolloClientOptionsMaker
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new UseLazyQuery()
Value Members
- def makeClientOptions(query: DocumentNode, variables: UndefOr[TVars] = js.undefined, unsafeVariables: UndefOr[Dynamic] = js.undefined, errorPolicy: UndefOr[ErrorPolicy] = js.undefined, context: UndefOr[Object] = js.undefined, fetchResults: UndefOr[Boolean] = js.undefined, metadata: UndefOr[Object] = js.undefined, fetchPolicy: UndefOr[FetchPolicy] = js.undefined): QueryOptions[TVars]
Make apollo_client.QueryOptions for the ApolloClient returned from
useQuery
which are slightly different thanQueryHookOptions
used in the hook! This primarily exists so we can get ajs.Promise
to throw an exception to the suspense mechanism.Make apollo_client.QueryOptions for the ApolloClient returned from
useQuery
which are slightly different thanQueryHookOptions
used in the hook! This primarily exists so we can get ajs.Promise
to throw an exception to the suspense mechanism.- Definition Classes
- ApolloClientOptionsMaker
- def makeLazyOptions(variables: UndefOr[TVars] = js.undefined, unsafeVariables: UndefOr[Dynamic] = js.undefined, context: UndefOr[Object] = js.undefined): QueryLazyOptions[TVars]
Make LazyQueryHookOptions
- def makeOptions(variables: UndefOr[TVars] = js.undefined, unsafeVariables: UndefOr[Dynamic] = js.undefined, query: UndefOr[DocumentNode] = js.undefined, displayName: UndefOr[String] = js.undefined, onCompleted: UndefOr[Function1[UndefOr[T], Unit]] = js.undefined, onError: UndefOr[Function1[ApolloError, Unit]] = js.undefined, ssr: UndefOr[Boolean] = js.undefined, fetchPolicy: UndefOr[WatchQueryFetchPolicy] = js.undefined, errorPolicy: UndefOr[ErrorPolicy] = js.undefined, pollInterval: UndefOr[Int] = js.undefined, client: UndefOr[ApolloClient] = js.undefined, notifyOnNetworkStatusChange: UndefOr[Boolean] = js.undefined, context: UndefOr[Object] = js.undefined, partialRefetch: UndefOr[Boolean] = js.undefined, returnPartialData: UndefOr[Boolean] = js.undefined, skip: UndefOr[Boolean] = js.undefined): LazyQueryHookOptions[T, TVars]
Make LazyQueryHookOptions for the hook, not for the lazy fetcher.
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def useLazyQuery(query: DocumentNode, options: UndefOr[|[LazyQueryHookOptions[T, TVars], Dynamic]] = js.undefined): (Function1[QueryLazyOptions[TVars], Unit], QueryResult[T, TVars])