p

react_apollo

package react_apollo

Relies on @apollo/react-hooks, @apollo/react-hoc, @apollo/react-common,

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. react_apollo
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. trait ApolloClientOptionsMaker[T, TVars <: Object] extends AnyRef
  2. trait ApolloContextValue extends Object
    Annotations
    @JSType()
  3. trait BaseMutationOptions[T, TVars <: Object] extends Object
    Annotations
    @JSType()
  4. trait BaseQueryOptions[TVars <: Object] extends Object
    Annotations
    @JSType()
  5. trait BaseSubscriptionOptions[T, TVars <: Object] extends Object
    Annotations
    @JSType()
  6. trait LazyQueryHookOptions[T, TVars <: Object] extends Object with QueryFunctionOptions[T, TVars]
    Annotations
    @JSType()
  7. trait MutationFunctionOptions[T, TVars <: Object] extends Object
    Annotations
    @JSType()
  8. trait MutationHookOptions[T, TVars <: Object] extends Object with BaseMutationOptions[T, TVars]
    Annotations
    @JSType()
  9. trait MutationResult[T] extends Object
    Annotations
    @JSType() @native()
  10. trait ObservableQueryFields[T, TVars <: Object] extends Object
    Annotations
    @JSType() @native()
  11. trait OnSubscriptionDataOptions[T] extends Object
    Annotations
    @JSType() @native()
  12. type OperationVariables = Dictionary[Any]

    Often used as a default type for TVars

  13. trait OptionsMaker[T, TVars <: Object] extends ApolloClientOptionsMaker[T, TVars]
  14. trait QueryFunctionOptions[T, TVars <: Object] extends Object with BaseQueryOptions[TVars]
    Annotations
    @JSType()
  15. trait QueryHookOptions[T, TVars <: Object] extends Object with QueryFunctionOptions[T, TVars] with Skip
    Annotations
    @JSType()
  16. trait QueryLazyOptions[TVars <: Object] extends Object
    Annotations
    @JSType() @native()
  17. 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

  18. class RenderPromises extends Object
    Annotations
    @JSType() @native() @JSImport("@apollo/react-hooks", "RenderPromises")
  19. trait Skip extends Object
    Annotations
    @JSType()
  20. trait SubscriptionHookOptions[T, TVars <: Object] extends Object with BaseSubscriptionOptions[T, TVars]
    Annotations
    @JSType()
  21. trait SubscriptionResult[T] extends Object
    Annotations
    @JSType() @native()
  22. case class UseLazyQuery[T, TVars <: Object]() extends ApolloClientOptionsMaker[T, TVars] with Product with Serializable

    Instantiate to avoid all the type parameter noise.

  23. 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.

  24. 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.

  25. trait Variables[TVars <: Object] extends Object
    Annotations
    @JSType() @native()

Value Members

  1. def useApolloClient(): ApolloClient
  2. def useBaseQuery[T, TVars <: Object](query: DocumentNode, options: UndefOr[QueryHookOptions[T, TVars]] = js.undefined): Tuple2[Function1[UndefOr[QueryLazyOptions[TVars]], Unit], QueryResult[T, TVars]]
  3. def useLazyQuery[T, TVars <: Object](query: DocumentNode, options: UndefOr[|[LazyQueryHookOptions[T, TVars], Dynamic]] = js.undefined): (Function1[QueryLazyOptions[TVars], Unit], QueryResult[T, TVars])
  4. def useMutation[T, TVars <: Object](mutation: DocumentNode, options: UndefOr[|[MutationHookOptions[T, TVars], Dynamic]] = js.undefined): (Function1[MutationFunctionOptions[T, TVars], Promise[ExecutionResult[T]]], MutationResult[T])
  5. def useQuery[T, TVars <: Object](query: DocumentNode, options: UndefOr[|[QueryHookOptions[T, TVars], Dynamic]] = js.undefined): QueryResult[T, TVars]
  6. def useSubscription[T, TVars <: Object](subscription: DocumentNode, options: UndefOr[SubscriptionHookOptions[T, TVars]] = js.undefined): SubscriptionResult[T] with Variables[TVars]
  7. object ApolloProvider
  8. object MutationFunctionOptions
  9. object MutationResult
  10. object QueryHookOptions
  11. object QueryResult

Inherited from AnyRef

Inherited from Any

Ungrouped