Trait/Object

sri.relay.container

RelayContainer

Related Docs: object RelayContainer | package container

Permalink

trait RelayContainer[P <: RelayComponentProps, S] extends Object

RelayContainer is a higher order component that provides the ability to:

- Encode data dependencies using query fragments that are parameterized by routes and variables. - Manipulate variables via methods on this.props.relay. - Automatically subscribe to data changes. - Avoid unnecessary updates if data is unchanged. - Propagate the route via context (available on this.props.relay).

Annotations
@RawJSType() @native()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RelayContainer
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def componentWillReceiveProps(nextProps: Object, nextContext: Object = ???): Unit

    Permalink
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def forceFetch(partialVariables: UndefOr[Variables] = js.undefined, callback: UndefOr[ComponentReadyStateChangeCallback] = js.undefined): Unit

    Permalink

    Requests an update to variables.

    Requests an update to variables. Unlike setVariables, this forces data to be fetched and written for the supplied variables. Any data that previously satisfied the queries will be overwritten.

  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. def getFragment(fragmentName: String, route: RelayQueryConfig = ???, variables: Variables = ???): RelayQueryFragment

    Permalink
  13. def getFragmentError(fragmentReference: RelayFragmentReference, record: Object): UndefOr[Error]

    Permalink

    Returns any error related to fetching data for a deferred fragment.

  14. def getFragmentNames(): Array[String]

    Permalink
  15. def getPendingTransactions(record: Object): UndefOr[Array[RelayMutationTransaction]]

    Permalink

    Returns the pending mutation transactions affecting the given record.

  16. def hasFragmentData(fragmentReference: RelayFragmentReference, record: Object): Boolean

    Permalink

    Checks if data for a deferred fragment is ready.

    Checks if data for a deferred fragment is ready. This method should *always* be called before rendering a child component whose fragment was deferred (unless that child can handle null or missing data).

  17. def hasOptimisticUpdate(record: Object): Boolean

    Permalink

    Determine if the supplied record reflects an optimistic update.

  18. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  19. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  26. def render(): ReactElement

    Permalink
  27. var route: RelayQueryConfig

    Permalink
  28. def setVariables(partialVariables: UndefOr[Variables] = js.undefined, callback: UndefOr[ComponentReadyStateChangeCallback] = js.undefined): Unit

    Permalink

    Requests an update to variables.

    Requests an update to variables. This primes the cache for the new variables and notifies the caller of changes via the callback. As data becomes ready, the component will be updated.

  29. def shouldComponentUpdate(nextProps: Object, nextState: Any, nextContext: Any): Boolean

    Permalink
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  32. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  33. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  34. var variables: Variables

    Permalink
  35. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped