Quiltt Logo

Subscribe to real-time events using Subscriptions

Quiltt provides full support for GraphQL's powerful subscriptions capabilities.

GraphQL Subscriptions allow you to receive real-time updates whenever a specific event occurs on a Profile. This can power live status indicators, onboarding flows, trigger re-fetching of data and more.

Link to this section#Available Subscriptions

Currently the following Subscriptions are available via GraphQL:

  • accountVerified: Fires whenever an Account's verification status changes.
  • connectionCreated: Fires whenever a new Connection is created.
  • connectionSynced: Fires whenever a Connection finishes syncing.

You can see the full list of available Subscriptions Operations in the GraphQL API Reference.

Link to this section#Using Subscriptions in React

The Quiltt React SDK ships with a useSubscription hook built on top of Apollo Client. You can refer to the official docs for customization options.

The examples below assume you have implemented the QuilttProvider component, which will handle authentication and configure the API client. See the SDK docs for more information.

Link to this section#accountVerified Subscription

Here's an example of a real-time Account verification status component. This component will re-render whenever the Account's verification status changes.

Link to this section#connectionCreated Subscription

Here's an example of how to render a new Connection in real-time as soon as it's created.

Link to this section#connectionSynced Subscription

Here's an example of how to create a real-time Connection sync status component. The component will re-render whenever the Connection has finished syncing.