8000 Serializing form - why so complicated? · Issue #42 · postlight/trimmings · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Serializing form - why so complicated? #42
Open
@garygreen

Description

@garygreen

Reference this line and serialize import:

const body = serialize(element)

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0