react_apollo
package react_apollo
Relies on @apollo/react-hooks, @apollo/react-hoc, @apollo/react-common,
- Alphabetic
- By Inheritance
- react_apollo
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- trait ApolloClientOptionsMaker[T, TVars <: Object] extends AnyRef
- trait ApolloContextValue extends Object
- Annotations
- @JSType()
- trait BaseMutationOptions[T, TVars <: Object] extends Object
- Annotations
- @JSType()
- trait BaseQueryOptions[TVars <: Object] extends Object
- Annotations
- @JSType()
- trait BaseSubscriptionOptions[T, TVars <: Object] extends Object
- Annotations
- @JSType()
- trait LazyQueryHookOptions[T, TVars <: Object] extends Object with QueryFunctionOptions[T, TVars]
- Annotations
- @JSType()
- trait MutationFunctionOptions[T, TVars <: Object] extends Object
- Annotations
- @JSType()
- trait MutationHookOptions[T, TVars <: Object] extends Object with BaseMutationOptions[T, TVars]
- Annotations
- @JSType()
- trait MutationResult[T] extends Object
- Annotations
- @JSType() @native()
- trait ObservableQueryFields[T, TVars <: Object] extends Object
- Annotations
- @JSType() @native()
- trait OnSubscriptionDataOptions[T] extends Object
- Annotations
- @JSType() @native()
- type OperationVariables = Dictionary[Any]
Often used as a default type for TVars
- trait OptionsMaker[T, TVars <: Object] extends ApolloClientOptionsMaker[T, TVars]
- trait QueryFunctionOptions[T, TVars <: Object] extends Object with BaseQueryOptions[TVars]
- Annotations
- @JSType()
- trait QueryHookOptions[T, TVars <: Object] extends Object with QueryFunctionOptions[T, TVars] with Skip
- Annotations
- @JSType()
- trait QueryLazyOptions[TVars <: Object] extends Object
- Annotations
- @JSType() @native()
- trait QueryResult[T, TVars <: Object] extends Object with ObservableQueryFields[T, TVars]
Is data undefined or null when there is no data?
Is data undefined or null when there is no data?
- Annotations
- @JSType() @native()
- See also
https://github.com/apollographql/react-apollo/pull/3388
- class RenderPromises extends Object
- Annotations
- @JSType() @native() @JSImport("@apollo/react-hooks", "RenderPromises")
- trait Skip extends Object
- Annotations
- @JSType()
- trait SubscriptionHookOptions[T, TVars <: Object] extends Object with BaseSubscriptionOptions[T, TVars]
- Annotations
- @JSType()
- trait SubscriptionResult[T] extends Object
- Annotations
- @JSType() @native()
- case class UseLazyQuery[T, TVars <: Object]() extends ApolloClientOptionsMaker[T, TVars] with Product with Serializable
Instantiate to avoid all the type parameter noise.
- case class UseMutation[T, TVars <: Object]() extends Product with Serializable
Because there are some duplicative types in the signatures which become burdensome, this helper class reduces type noise.
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.
- 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.
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.
- trait Variables[TVars <: Object] extends Object
- Annotations
- @JSType() @native()
Value Members
- def useApolloClient(): ApolloClient
- def useBaseQuery[T, TVars <: Object](query: DocumentNode, options: UndefOr[QueryHookOptions[T, TVars]] = js.undefined): Tuple2[Function1[UndefOr[QueryLazyOptions[TVars]], Unit], QueryResult[T, TVars]]
- def useLazyQuery[T, TVars <: Object](query: DocumentNode, options: UndefOr[|[LazyQueryHookOptions[T, TVars], Dynamic]] = js.undefined): (Function1[QueryLazyOptions[TVars], Unit], QueryResult[T, TVars])
- def useMutation[T, TVars <: Object](mutation: DocumentNode, options: UndefOr[|[MutationHookOptions[T, TVars], Dynamic]] = js.undefined): (Function1[MutationFunctionOptions[T, TVars], Promise[ExecutionResult[T]]], MutationResult[T])
- def useQuery[T, TVars <: Object](query: DocumentNode, options: UndefOr[|[QueryHookOptions[T, TVars], Dynamic]] = js.undefined): QueryResult[T, TVars]
- def useSubscription[T, TVars <: Object](subscription: DocumentNode, options: UndefOr[SubscriptionHookOptions[T, TVars]] = js.undefined): SubscriptionResult[T] with Variables[TVars]
- object ApolloProvider
- object MutationFunctionOptions
- object MutationResult
- object QueryHookOptions
- object QueryResult