useQuery in Field validators
useQuery in Field validators?I have a Form where the user inputs two dates and I make a Request to the Backend to check if those Dates are on a public holiday or not (which would mean the user needs to select a different Date).
To use the Caching from useQuery I would like to define my Query somewhere
and then use it in the validation on the Field
I checked the docs and this example but it only uses Promises in the validators:
https://tanstack.com/form/latest/docs/framework/react/examples/query-integration