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

Add useResetSubmitErrors hook #6

Closed

Conversation

alanpoulain
Copy link

Hello! First PR on this repository it seems 🙂

This hook can be useful in some cases, for instance marmelab/react-admin#5962.

@alanpoulain alanpoulain force-pushed the use-reset-submit-errors branch from 170421f to de73081 Compare March 8, 2021 13:04
@ignatevdev
Copy link
Owner

Hi!

This addition looks good, however, I think we should add some tests to make sure this wouldn't break in the future.

I'll try to test this soon and then merge this PR.

@ignatevdev
Copy link
Owner

I've rewritten the code slightly to prevent unnecessary mutators calls, as in some cases it was causing an infinite setState loop inside the final-form's code and included the hook in the latest release, therefore I'm closing the PR.

Thank you for your contribution!

@ignatevdev ignatevdev closed this Jun 30, 2022
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 this pull request may close these issues.

2 participants