TanStackT
TanStack3mo ago
11 replies
developed-pink

useFieldContext

I have created a InputField component, but I need to extend the label for an input which tells me if a input is optional. Is there a way I can check whether or not a field is optional based on field.state (or something like that)?. I use zod as a validation schema.
Was this page helpful?