Skip to content

docs: document type values for watch() callback#1203

Merged
bluebill1049 merged 1 commit intoreact-hook-form:masterfrom
dfedoryshchev:docs/watch-callback-type-values
Apr 19, 2026
Merged

docs: document type values for watch() callback#1203
bluebill1049 merged 1 commit intoreact-hook-form:masterfrom
dfedoryshchev:docs/watch-callback-type-values

Conversation

@dfedoryshchev
Copy link
Copy Markdown
Contributor

Closes #1040.

The deprecated watch(callback, ...) overload's type argument was undocumented. Adds a short note clarifying:

  • type is the originating DOM event (typed as EventType)
  • For standard web inputs, type === 'change' on user input
  • type === undefined when triggered programmatically (setValue, reset, unregister)
  • Full union also includes React Native event types

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 19, 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 Apr 19, 2026

Deploy Preview for sage-cassata-31d224 ready!

Name Link
🔨 Latest commit 884e9b3
🔍 Latest deploy log https://app.netlify.com/projects/sage-cassata-31d224/deploys/69e4e2e99055470008c74f4e
😎 Deploy Preview https://deploy-preview-1203--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.

@bluebill1049 bluebill1049 merged commit 19f761a into react-hook-form:master Apr 19, 2026
7 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.

Document watch callback type parameter

2 participants