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

useSubmission input is empty during ssr depending on FormData size #513

Open
katywings opened this issue Feb 21, 2025 · 0 comments
Open

Comments

@katywings
Copy link

Describe the bug

If you natively (disabled js) submit a router-action based form with large form values, the form data will be in the server-function argument as expected, but useSubmission().input is empty during ssr.

Your Example Website or App

Stackblitz had a wasm problem, Repro ZIP is in "Additional context"

Steps to Reproduce the Bug or Issue

  1. Add a form with a router+server-fn based action and a textarea
  2. Output useSubmission().input in the JSX
  3. console.log the form data in the server-fn
  4. Open the browser + disable js in devtools
  5. Enter a very large text in the textarea and submit
  6. The server function logs the form data, but the submission input will be empty

Expected behavior

useSubmission().input during ssr should by consistent with the server-fn arguments, even if the submitted FormData has large values.

Screenshots or Videos

Screencast.From.2025-02-21.21-22-53.mp4

Platform

  • OS: Linux
  • Browser: Firefox

Additional context

Reproduction (based on SolidStart bare):
start-empty-submission-large-values.zip

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

No branches or pull requests

1 participant