Skip to content

Comments

feat: add exact to useController props#13154

Merged
bluebill1049 merged 4 commits intoreact-hook-form:masterfrom
ap0nia:feat/exact-prop-controller
Nov 24, 2025
Merged

feat: add exact to useController props#13154
bluebill1049 merged 4 commits intoreact-hook-form:masterfrom
ap0nia:feat/exact-prop-controller

Conversation

@ap0nia
Copy link
Contributor

@ap0nia ap0nia commented Nov 21, 2025

Proposed Changes

  • Add exact to props accepted by useController
  • exact will default to true just like before, so it will be a non-breaking change.

Fixes #13153

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing tests pass locally with my changes

Usage

<Controller control={control} name="user.name" exact={false} />

@bluebill1049 bluebill1049 merged commit 90d19ad into react-hook-form:master Nov 24, 2025
6 checks passed
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.

Add "exact" to useController props

2 participants