Optional fields
Hi guys, I have a question about Tanstack Form.
You can see that email is optional. But when I do it like this, the line
Someone suggested casting the default values like this:
But I don't really like casting and I feel like there should be a nicer solution to have some fields optional
You can see that email is optional. But when I do it like this, the line
onChange: schema starts firing an error sayng The types of ''~standard'.types' are incompatible between these types.. What is the best approach to handle optional fields?Someone suggested casting the default values like this:
But I don't really like casting and I feel like there should be a nicer solution to have some fields optional