How to use with Astro + React? #3511
Unanswered
kaushalyap
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying use URQL inside a React component Astro project, but using
useQuery
gives following errorWhich make sense in Astro project I do not have root component. I tried to use
still gives the same error, as I searched I found there is no API to pass client object to
useQuery
hook. There was suggestion for multiple clients but it was rejected, Apollo client supports client objectCurrent solution seems to be
Disadvantages with this is it does not give you the
fetching
state andrefetching
function.Is there any other way to solve this problem?
Beta Was this translation helpful? Give feedback.
All reactions