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

[issue] Add the reset function to the docs #20

Open
1 task done
cbonaco1 opened this issue Nov 3, 2022 · 1 comment
Open
1 task done

[issue] Add the reset function to the docs #20

cbonaco1 opened this issue Nov 3, 2022 · 1 comment

Comments

@cbonaco1
Copy link

cbonaco1 commented Nov 3, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Formspree React Version

2.4.0

Formspree Core Version

n/a

Current Behavior

Please add information about the reset function to the @formspree/react documentation. I was just wrestling with a bug for some time, and knowing the reset function was exposed by useForm would have been a huge time saver. I only discovered it by looking into the codebase.
Also wondering why the state can't be reset by default on a new form submission?

Expected Behavior

No response

Steps To Reproduce

No response

Link to Minimal Reproducible Example (CodeSandbox, StackBlitz, etc.)

No response

Anything else?

No response

@cavellblood
Copy link

I had to dive into the codebase to find this out too. I think documentation could be improved.

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

2 participants