Skip to content
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

fix: Prop method did not match. Server: "POST" Client: "post" #11710

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

davidkhierl
Copy link

This fixes the warning when used in SSR.

Copy link

codesandbox bot commented Mar 23, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@bluebill1049
Copy link
Member

can you share a warning screenshot?

@davidkhierl
Copy link
Author

davidkhierl commented Mar 23, 2024

hi @bluebill1049 here is the warning on the browser
image

there is also another warning at the server side regarding the encType when the action passed is a function, which I'm still finding
a way on how to properly solve this
image

is it fine to omit the encType prop on the form? since react will override this anyway based on the warning

I'm using Next.js 14.1.4

@bluebill1049
Copy link
Member

please reupload your images

@davidkhierl
Copy link
Author

image

image

@davidkhierl
Copy link
Author

@bluebill1049 hi, are we able to merge this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants