Skip to content

fix: revalidate deps dependents on setValue with shouldValidate - #13765

Merged
bluebill1049 merged 1 commit into
react-hook-form:masterfrom
soroush5:fix/setvalue-follows-deps-validation
Sep 19, 2026
Merged

bluebill1049 merged 1 commit into
react-hook-form:masterfrom
soroush5:fix/setvalue-follows-deps-validation

Conversation

@soroush5

Copy link
Copy Markdown
Contributor

Typing into a field revalidated its deps dependents, but a programmatic setValue with shouldValidate left ghost errors and a stuck isValid state. Deps are now revalidated on the setValue path too, mirroring the onChange behavior.

Verified: 2 new tests fail before and pass after, full suite green, plus a real Chromium check.

Fixes #13764

@bluebill1049
bluebill1049 merged commit 12735bd into react-hook-form:master Sep 19, 2026
6 checks passed
@soroush5

Copy link
Copy Markdown
Contributor Author

Thanks for merging.

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.

setValue with shouldValidate does not revalidate deps dependents

2 participants