react-hook-form / documentation

📋 Official documentation
http://react-hook-form.com
MIT License
723 stars 1.03k forks source link

Specify error key in description of new Form component #1063

Closed maurer2 closed 5 months ago

maurer2 commented 5 months ago

Hello, I noticed that the documentation for the new form component doesn't specify the error key that is used to persist the server error in the error list. It slightly differs from the error key that is used in the example for setError. According to the implementation logic the correct key is root.server source. The global error type for server errors that is mentioned in other places is root.serverError source. Specifying the the error key in the documentation might avoid potential confusion here.

Cheers

vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-hook-form-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 24, 2024 10:39pm