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

When switching form, clear form BEFORE switching #2579

Merged
merged 1 commit into from
Jul 4, 2022

Conversation

Kadrian
Copy link
Collaborator

@Kadrian Kadrian commented Jul 4, 2022

Because reset AFTER didn't work properly, likely because react-hook-form's useController doesn't have the updated control prop form useForm when running the useLayoutEffect.

Because reset AFTER didn't work properly, likely because react-hook-form's useController doesn't have the updated control prop form useForm when running the useLayoutEffect.
@Kadrian Kadrian requested a review from awildturtok July 4, 2022 17:11
@Kadrian Kadrian merged commit 7aeb590 into develop Jul 4, 2022
@delete-merged-branch delete-merged-branch bot deleted the fix-reset-form-when-switching-form branch July 4, 2022 17:19
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.

1 participant