case class UseQuery[T, TVars <: Object]() extends OptionsMaker[T, TVars] with Product with Serializable
Because there are some duplicative types in the signatures which become burdensome, this helper class reduces type noise. Instantiate the object then use values and methods in it without need to always specify the types.
- Alphabetic
- By Inheritance
- UseQuery
- Serializable
- Product
- Equals
- OptionsMaker
- ApolloClientOptionsMaker
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new UseQuery()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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 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): QueryHookOptions[T, TVars]
Make QueryHookOptions
Make QueryHookOptions
- Definition Classes
- OptionsMaker
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def useQuery(query: DocumentNode, options: UndefOr[|[QueryHookOptions[T, TVars], Dynamic]] = js.undefined): QueryResult[T, TVars]
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])