Pass Parameters to urql's useQuery React Hook

Share this video with your friends

Send Tweet

When you fetch data, you often want more than what a static query can give you.

In this lesson, we pass use useQuery's configuration object to pass variables into our GraphQL Query.

Urql will execute the same query with new variables whenever it detects that one of the variables it is passing to Graphql has changed.