Skip to content

Comments

fix: change spread operator to set name with deprecated names first#13214

Merged
bluebill1049 merged 1 commit intoreact-hook-form:masterfrom
EdwardEB:fix-watch-bug
Dec 22, 2025
Merged

fix: change spread operator to set name with deprecated names first#13214
bluebill1049 merged 1 commit intoreact-hook-form:masterfrom
EdwardEB:fix-watch-bug

Conversation

@EdwardEB
Copy link
Contributor

Change spread operator in useWatch hook to set name key with deprecated names props first, then override with new name key if supplied. Currently, if deprecated names prop is refactored to name, the useWatch hook receives name as undefined, the value is cleared and the Watch component will re-render if any key changes.

@bluebill1049 bluebill1049 merged commit 74e652c into react-hook-form:master Dec 22, 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.

2 participants