Subscription component uses scoped slots to provide the subscription state to the slot template.
The Subscription component is renderless by default, meaning it will not render any extra HTML other than its slot.
Subscription component accepts the following props:
|query||Yes||The subscription to be executed/started|
|variables||No||The subscription variables|
|paused||No||Activates/Deactivates the subscription, defaults to |
|reduce||No||A reducer used to aggregate the values returned by the subscription, check the subscription guide for more information|
Mutation component exposes a single
default slot with the following properties:
|data||The GraphQL query result's |
|error||Any errors encountered during query execution|
|isDone||Set to true when the query is executed at least once, never resets to |
|isFetching||Set to true when the query is executing either by calling |
|isPaused||If the subscription is currently paused or inactive|
Mutation component does not emit any events at the moment