-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Have to set stringifyAllValues: false else all strings are double quoted #77
Comments
@vrn-hkz this is the intended behavior, if you're interested in why this is done you can find a detailed explanation here: |
Ok thanks for the feeback! |
Because of this line in
createFormData(data: T, stringifyAll = true)
in./utilities/index.ts
So when accessing FormData in backend with
formData.get('email')
the result is"/"[email protected]/""
with double quoted string. What can be the workaround for this?Currently I am setting
stringifyAllValues: false
and coercing all to strings in my zod schema.The text was updated successfully, but these errors were encountered: