In this lesson, we use urql's useSubscription hook to subscribe to a GraphQL subscription.
useSubscription
We write a GraphQL subscription query and pass it to useSubscritpion which returns the result of the subscription we pass it.
useSubscritpion