Closed maurer2 closed 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 |
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 isroot.serverError
source. Specifying the the error key in the documentation might avoid potential confusion here.Cheers