Urql: Query component requires client and key in props

Created on 3 Apr 2019  路  5Comments  路  Source: FormidableLabs/urql

I am using uql with typescript and I have a problem with

image

none of the examples show the <Query /> component with these two props yet they are required.
Either the typing is wrong or all the examples need amending. I am thinking the former.

bug 馃悰

All 5 comments

Your code looks about right. Can you confirm which version you are currently using?

Using latest 1.0.4

Looks like there were a couple of things that caused this. There's a PR to fix the issue.

Would strongly recommend that you look into upgrading react and using the hooks implementation if possible.

Very fast response! This is exactly the patch I had in mind.Hope it get's merged soon.

I'll pressure @kitten to approve 馃懣

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ivosequeros picture ivosequeros  路  5Comments

fillipvt picture fillipvt  路  4Comments

andyrichardson picture andyrichardson  路  4Comments

alexraginskiy picture alexraginskiy  路  3Comments

kitten picture kitten  路  4Comments