Fetch data in onSubmit method before submit #5160
Answered
by
TkDodo
carlosriveroib
asked this question in
Q&A
-
I need to fetch data that depends on some fields in the form because I need that to make the submit. How can I achieve this? Here an example that I want.
I know this portion of code is wrong. How is the best way to do that? |
Beta Was this translation helpful? Give feedback.
Answered by
TkDodo
Mar 20, 2023
Replies: 1 comment 2 replies
-
use |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
carlosriveroib
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
use
queryClient.fetchQuery