Write a GraphQL Subscription with React Hooks using Urql

Ian Jones
InstructorIan Jones

Share this video with your friends

Send Tweet

In this lesson, we use urql's useSubscription hook to subscribe to a GraphQL subscription.

We write a GraphQL subscription query and pass it to useSubscritpion which returns the result of the subscription we pass it.