Add an option for toFormData
to allow null values
#6329
maclementED
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I needed to send null values in a FormData. Sadly, there wasn't any way to indicate to keep null values as is.
This line is causing to transform null to empty string.
We would need to update
options
object andconvertValue
function to accept a parameter likenullsAsEmptyString
If needed, I can submit a PR for this feature
Beta Was this translation helpful? Give feedback.
All reactions