conform icon indicating copy to clipboard operation
conform copied to clipboard

Missing default values on Next.js Edge Runtime

Open carloitaben opened this issue 9 months ago • 0 comments

Describe the bug and the expected behavior

Hello! I just discovered a strange bug where the default values are missing in Next.js with the Edge Runtime. It’s likely a bug in Next.js, but it doesn’t hurt to report it here as well and start the conversation 🙂

(btw It's awesome to see the project actively developing again! Kudos to chimame for the Valibot adapter ❤️)

Conform version

1.3.0

Steps to Reproduce the Bug or Issue

  1. Disable JavaScript.
  2. Load http://localhost:3000/.
  3. Observe that the form is empty.
  4. Comment out the line export const runtime = "edge".
  5. Reload the page and notice that the form is no longer empty.

What browsers are you seeing the problem on?

Chrome

Screenshots or Videos

https://github.com/user-attachments/assets/94ac4a28-8208-4e26-b742-745d1352e2e5

Additional context

Uploaded a minimal repro here.

carloitaben avatar Apr 04 '25 14:04 carloitaben