Open TheYoxy opened 1 month ago
+1
@TheYoxy actually I don't think this can be done in createFormData
because this is using FormData
https://developer.mozilla.org/en-US/docs/Web/API/FormData/append#value
What is really desired here is something that conform does with parseWithZod
As is, when you create a form data with a value that has been defined with a value, even values that represents nothing (
null
andundefined
), it gets serialized in string.Wouldn't it be better to ignore theses values or return the raw underlined type ?
One idea of test implementation in the case that the choice is to handle base type: