Skip to content

docs: correct setValues callback return type to TFieldValues#1214

Merged
bluebill1049 merged 1 commit into
react-hook-form:masterfrom
dfedoryshchev:docs/correct-setvalues-callback-return-type
May 26, 2026
Merged

docs: correct setValues callback return type to TFieldValues#1214
bluebill1049 merged 1 commit into
react-hook-form:masterfrom
dfedoryshchev:docs/correct-setvalues-callback-return-type

Conversation

@dfedoryshchev
Copy link
Copy Markdown
Contributor

The setValues callback return type was documented as (data: TFieldValues) => Partial<TFieldValues>, but the source type UseFormSetValues declares it as (formValues: TFieldValues) => TFieldValues.

Updated the heading signature, the Props table cell, and the Rules admonition wording to match the source. The existing callback example already returns { ...data, name: "test" } (full TFieldValues), which is now consistent with the documented type.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 26, 2026

@dfedoryshchev is attempting to deploy a commit to the BEEKAI OSS Team on Vercel.

A member of the Team first needs to authorize it.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 26, 2026

Deploy Preview for sage-cassata-31d224 ready!

Name Link
🔨 Latest commit 654b6d1
🔍 Latest deploy log https://app.netlify.com/projects/sage-cassata-31d224/deploys/6a1556ce86f2e8000872bd1c
😎 Deploy Preview https://deploy-preview-1214--sage-cassata-31d224.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Member

@bluebill1049 bluebill1049 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@bluebill1049 bluebill1049 merged commit 28baceb into react-hook-form:master May 26, 2026
4 of 8 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