You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Submitting a <ValidatedForm reloadDocument> should work the same was as a <Form reloadDocument>.
Screenshots or Videos
All but the Form with reloadDocument
Form with reloadDocument
Platform
OS: Linux (Not relevant)
Browser: Brave (Not relevant)
Version: Not relevant
Additional context
This breaks in ValidatedForm because it uses useSubmit under the hood, which does not respect reloadDocument or (AFACT) offers similar functionality.
I might not be diagnosing this issue correctly. It's all a guess from me.
I think a reloadDocument option should make it submit for a full page submit, like noValidate does, when JS is not available, but still submit the <form> for real without useSubmit if validations pass when JS is available.
Overall, I only want this behavior due to the lack of "hard redirects" in Remix, where I have some non-remix routes that I want to redirect to. If this is ever fixed upstream (remix-run/react-router#9859), then I won't care about this anymore.
The text was updated successfully, but these errors were encountered:
Which packages are impacted?
remix-validated-form
@remix-validated-form/with-zod
@remix-validated-form/with-yup
zod-form-data
What version of these packages are you using?
Please provide a link to a minimal reproduction of the issue.
https://github.com/Mange/remix-redirect-repro
Steps to Reproduce the Bug or Issue
npm install && npm run dev
Expected behavior
Submitting a
<ValidatedForm reloadDocument>
should work the same was as a<Form reloadDocument>
.Screenshots or Videos
All but the Form with reloadDocument
Form with reloadDocument
Platform
Additional context
This breaks in
ValidatedForm
because it usesuseSubmit
under the hood, which does not respectreloadDocument
or (AFACT) offers similar functionality.I might not be diagnosing this issue correctly. It's all a guess from me.
I think a
reloadDocument
option should make it submit for a full page submit, likenoValidate
does, when JS is not available, but still submit the<form>
for real withoutuseSubmit
if validations pass when JS is available.Overall, I only want this behavior due to the lack of "hard redirects" in Remix, where I have some non-remix routes that I want to redirect to. If this is ever fixed upstream (remix-run/react-router#9859), then I won't care about this anymore.
The text was updated successfully, but these errors were encountered: