fetch "get" data in form submit
I don't understand how I can retrieved data in my submit function.
I have to validate that some data still exist upon submission by calling a get api and see if the object is still there.
For get function, we can use useQuery but it can work for this scenario and I can't set the parameters dynamically during my form subscription and wait for the refetch.
Did I miss something?
Is it a case that react query does not cover?
Thanks