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

Remove useless reaction on submit #55

Merged
merged 1 commit into from
Aug 26, 2021

Conversation

vstlouis
Copy link
Contributor

@vstlouis vstlouis commented Aug 26, 2021

This was pretty interesting to track down. Apparently when setting form.submit.state.error to null before validation occurs, it causes any pending reactions to fire which could be stale based on the current value of form elements causing unintended consequences.

@vstlouis vstlouis self-assigned this Aug 26, 2021
@daedalus28 daedalus28 merged commit 49dbeb0 into master Aug 26, 2021
@daedalus28 daedalus28 deleted the fix/remove-useless-reaction-on-submit branch August 26, 2021 22:30
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