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.
Returns any error related to fetching data for a deferred fragment.
Returns the pending mutation transactions affecting the given record.
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).
Determine if the supplied record reflects an optimistic update.
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.
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 theroute
via context (available onthis.props.relay
).