Urql (graphql client) useQuery Method

I just wrote a blog post on urqls useQuery method.

https://www.ianjones.us/urql

I would love your feedback!

It is the written version to one of my lesson here if you prefer to watch it:

2 Likes

Hi Ian - so useQuery is synchronous? I was curious how it goes from a loading state to a finished state.

Its not synchronous. Text doesnt show it very well but the result object that useQuery returns is updated and causes a rerender. In this case, it’s updated the first time because fetching: true and then again because the data was returned. fetching: false, data: {//the data}