trimmings icon indicating copy to clipboard operation
trimmings copied to clipboard

Serializing form - why so complicated?

Open garygreen opened this issue 3 years ago • 0 comments

Reference this line and serialize import:

https://github.com/postlight/trimmings/blob/d5e4b12616e01611564bb4356b4b47f1273f62de/src/utils/loadElement.js#L19

If the element is a form then couldn't this just be simplifed as new FormData(element) and pass that onto fetch ? There's no need to manually serialize form and it's elements...

garygreen avatar Sep 23 '20 23:09 garygreen