Skip to content

feat: setValues#1207

Merged
bluebill1049 merged 12 commits intomasterfrom
feat/setValues
Apr 25, 2026
Merged

feat: setValues#1207
bluebill1049 merged 12 commits intomasterfrom
feat/setValues

Conversation

@bluebill1049
Copy link
Copy Markdown
Member

No description provided.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 25, 2026

Deploy Preview for sage-cassata-31d224 ready!

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

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Apr 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-hook-form-website Ready Ready Preview, Comment Apr 25, 2026 10:05pm

Request Review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new setValues documentation page and broadens SEO/metadata coverage across the site, while continuing the migration from legacy page/components to Contentlayer MDX docs.

Changes:

  • Add new MDX docs for setValues, useController, and useFieldArray, and wire setValues into the API sidebar.
  • Improve SEO defaults and per-page metadata (descriptions, canonical/OG/twitter tags) and add lang="en" + robots.txt.
  • Remove legacy Next pages/components for useController/useFieldArray now superseded by MDX docs.

Reviewed changes

Copilot reviewed 51 out of 51 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/pages/resources/videos.tsx Update SEO title/description for Videos resource page
src/pages/resources/newsletters.tsx Add SEO description for Newsletter resource page
src/pages/resources/articles.tsx Add SEO description for Articles resource page
src/pages/resources/3rd-party-bindings.tsx Improve SEO title + add description for bindings page
src/pages/media.tsx Update SEO title/description for Media page
src/pages/docs/usefieldarray.tsx Remove legacy page route (replaced by MDX via catch-all)
src/pages/docs/usecontroller.tsx Remove legacy page route (replaced by MDX via catch-all)
src/pages/docs.tsx Add API index page SEO description
src/pages/dev-tools.tsx Replace API-driven title with explicit SEO title/description; remove unused import
src/pages/about-us.tsx Add SEO description
src/pages/_document.tsx Add lang="en" to <Html>
src/pages/_app.tsx Remove hard-coded global <title> from app-level <Head>
src/content/docs/usewatch/watch.mdx Expand frontmatter description
src/content/docs/usewatch.mdx Expand frontmatter description
src/content/docs/uselens.mdx Expand frontmatter description
src/content/docs/useformstate/formstatesubscribe.mdx Improve description + fix typo (uesFormStateuseFormState)
src/content/docs/useformstate/errormessage.mdx Expand frontmatter description
src/content/docs/useformstate.mdx Expand frontmatter description
src/content/docs/useformcontext.mdx Expand frontmatter description
src/content/docs/useform/watch.mdx Expand frontmatter description
src/content/docs/useform/unregister.mdx Expand frontmatter description
src/content/docs/useform/trigger.mdx Expand frontmatter description
src/content/docs/useform/subscribe.mdx Expand frontmatter description
src/content/docs/useform/setvalues.mdx New MDX doc page for setValues
src/content/docs/useform/setvalue.mdx Expand frontmatter description
src/content/docs/useform/setfocus.mdx Expand frontmatter description
src/content/docs/useform/seterror.mdx Expand frontmatter description
src/content/docs/useform/resetfield.mdx Expand frontmatter description
src/content/docs/useform/reset.mdx Expand frontmatter description
src/content/docs/useform/register.mdx Expand frontmatter description + minor grammar tweak
src/content/docs/useform/handlesubmit.mdx Expand frontmatter description
src/content/docs/useform/getvalues.mdx Expand frontmatter description
src/content/docs/useform/getfieldstate.mdx Expand frontmatter description
src/content/docs/useform/formstate.mdx Expand frontmatter description
src/content/docs/useform/form.mdx Expand frontmatter description + minor grammar tweak
src/content/docs/useform/control.mdx Expand frontmatter description
src/content/docs/useform/clearerrors.mdx Expand frontmatter description
src/content/docs/useform.mdx Expand frontmatter description
src/content/docs/usefieldarray.mdx New MDX doc page for useFieldArray
src/content/docs/usecontroller/controller.mdx Expand frontmatter description + fix grammar in video note
src/content/docs/usecontroller.mdx New MDX doc page for useController
src/content/docs/formprovider.mdx Expand frontmatter description
src/content/docs/createFormControl.mdx Expand description + fix grammar in intro paragraph
src/components/seo.tsx Refactor SEO component: defaults, canonical, OG + Twitter tags
src/components/UseFieldArrayContent.tsx Remove legacy component-based docs content
src/components/UseFieldArray.tsx Remove legacy component-based docs wrapper page
src/components/UseControllerMethods.tsx Remove legacy component-based docs table component
src/components/UseControllerContent.tsx Remove legacy component-based docs content
src/components/UseController.tsx Remove legacy component-based docs wrapper page
src/components/Menu/MenuLinks.ts Add setValues to the API sidebar navigation
public/robots.txt Add robots + sitemap directive
Comments suppressed due to low confidence (1)

src/pages/_app.tsx:41

  • Removing the global <title> from _app means any route that doesn't render the Seo component (e.g. lightweight redirect pages) will now ship without a document title. Consider restoring a default <title> in _app (or ensuring every page, including redirect-only ones, renders Seo with a fallback title).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/components/seo.tsx Outdated
Comment thread src/content/docs/useform/setvalues.mdx
Comment thread src/content/docs/usefieldarray.mdx Outdated
Comment thread src/content/docs/usefieldarray.mdx
Comment thread src/components/Menu/MenuLinks.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@bluebill1049 bluebill1049 merged commit d11ceff into master Apr 25, 2026
9 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