Skip to content

Bug: Post helper squashes data into fetch options #494

Description

@mismith

This simple request:

const fetchClient = mande('/api/some-url');
await fetchClient.post({ priority: 99 });

Throw this error:
image

Reproduction: https://stackblitz.com/edit/vitejs-vite-rdwntz?file=src%2Fmain.js

Looks like the payload that's intended to be data is being passes to fetch directly/outside of a stringified JSON body.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions