Replies: 1 comment
-
@bluebill1049 Hey, Any chance you could look into this ? sorry for the reminder. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @thanh-nguyen-95 @bluebill1049
I have a react + react-hook-form question
I have:
with
daoExists
, I need to check graphql endpoint and if it returns true, validation succeeds, otherwise some error message. I am usinguseQuery
hooks from apollo client for such queries, but now I have a problem, becausedaoExists
can't be a hook. So, what I am doing is I create adaoExists
as normal function. Something like this:Which I really don't like to use
fetch
and I wanna continue usinguseQuery
hooks, but I can't. I even tried creatinguseCallback
, but then I can't useuseQuery
in myuseCallback.
Any workarounds ?
Beta Was this translation helpful? Give feedback.
All reactions