Skip to content

Conversation

@wo-o29
Copy link

@wo-o29 wo-o29 commented Oct 26, 2025

Summary

This PR fixes three documentation issues in the advanced-usage.mdx file with incorrect or outdated code examples.

Changes

  1. Fixed reset defaultValues usage in "Controlled mixed with Uncontrolled Components" section

    • Changed reset({ defaultValues }) to reset({ ...defaultValues })
    • The reset function expects the values directly, not wrapped in an object
  2. Updated register API syntax in "Custom Register" example

    • Changed register({ name: "select" }) to register("select")
    • Simplified to match current API where field name is passed as first argument
  3. Added style prop to virtualized list example in "Working with virtualized lists" section

    • Added style={style} to the WindowedRow component's return statement
    • Wrapped input in a div with proper styling for react-window compatibility
    • Matches the CodeSandbox example implementation

@vercel
Copy link

vercel bot commented Oct 26, 2025

@wo-o29 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

netlify bot commented Oct 26, 2025

Deploy Preview for sage-cassata-31d224 ready!

Name Link
🔨 Latest commit 671a3e8
🔍 Latest deploy log https://app.netlify.com/projects/sage-cassata-31d224/deploys/68fe3a8a3324a70008925923
😎 Deploy Preview https://deploy-preview-1177--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.

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.

1 participant