useFormState
does not work with JS disabled in edge runtime
#56332
Labels
bug
Issue was opened via the bug report template.
Pages Router
Related to Pages Router.
stale
The issue has not seen recent activity.
Link to the code that reproduces this issue
https://github.com/Fredkiss3/form-errors-pe/tree/repro/edge-runtime
To Reproduce
export const runtime = 'edge'
at the root layout and submitting the form with JS disabled8. -> Now you will see form errors appearing
Current vs. Expected behavior
The expected behavior is for
useFormState
to work with JS disabled but it doesn't work within edge runtime.Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.0.0: Fri Sep 15 14:43:05 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T6020 Binaries: Node: 18.17.1 npm: 9.6.7 Yarn: 1.22.19 pnpm: 8.7.1 Relevant Packages: next: 13.5.4-canary.9 eslint-config-next: 13.4.19 react: 18.2.0 react-dom: 18.2.0 typescript: 5.2.2 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
App Router, Data fetching (gS(S)P, getInitialProps)
Additional context
No response
The text was updated successfully, but these errors were encountered: