-
Is it possible to use queries on the front-end directly - without useQuery()? react-hook-form expects validators in the shape of a simple function that returns boolean or Promise. I've managed to do it with some state and useQuery, but it would be so much easier just to call the query imperatively from the validator function? |
Beta Was this translation helpful? Give feedback.
Answered by
pandrija
Oct 16, 2020
Replies: 1 comment
-
For some reason, I missed it until now: https://blitzjs.com/docs/invoke :-) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
pandrija
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For some reason, I missed it until now: https://blitzjs.com/docs/invoke :-)