-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Bug: Post helper squashes data into fetch options #494
Comments
Potential fix here: #495 |
Thanks for the PR, you need to pass a first argument for data: |
@posva Are you sure? The workaround I shipped was At any rate, it seems like a logical error anyway, no? Why would you ever want data to 'leak' into the fetch options? |
Oh yeah, I thought you wanted to pass the option, I misread |
This simple request:
Throw this error:
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.
The text was updated successfully, but these errors were encountered: