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

fix: add async await to use controller onchange #11165

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aashishsingla567
Copy link

@aashishsingla567 aashishsingla567 commented Nov 8, 2023

The onChange and onBlur methods returned by useController needs to be async as they return result of async function the function of type ChangeHandler which is an async function itself.

Copy link

codesandbox bot commented Nov 8, 2023

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@aashishsingla567 aashishsingla567 force-pushed the fix/async-await-in-usecontroller-onchange branch from eb9184a to eed0d6f Compare November 8, 2023 07:15
@aashishsingla567 aashishsingla567 force-pushed the fix/async-await-in-usecontroller-onchange branch from eed0d6f to 4dd7a7e Compare November 8, 2023 07:21
Copy link

stale bot commented Dec 15, 2023

Thank you for your contributions! This Pull Request has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Best, RHF Team ❤️

@stale stale bot added the stale label Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant