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

resetForm: true resets status #756

Open
lifeiscontent opened this issue Aug 30, 2024 · 0 comments
Open

resetForm: true resets status #756

lifeiscontent opened this issue Aug 30, 2024 · 0 comments

Comments

@lifeiscontent
Copy link
Contributor

Describe the bug and the expected behavior

I'm not sure if I'm misunderstanding, but I have a scenario where if the form submission was unsuccessful I want to keep a form drawer open, so my plan was to check the submission status, and if it wasn't equal to success keep the form drawer open so the user can take care of the errors

it appears that when we return json(submission.reply({resetForm: true})) it actually clears out the status, how can I be sure that the submission was successful?

Conform version

v1.1.5

Steps to Reproduce the Bug or Issue

  1. Create a Form Drawer
  2. use a fetcher
  3. in the action do what I described above
  4. see that if the action was successful the status is not defined in the fetcher.data

What browsers are you seeing the problem on?

No response

Screenshots or Videos

No response

Additional context

No response

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 a pull request may close this issue.

1 participant