Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve global error handler and create utility fn. to suppress field errors and set it to react-hook-form's state #9882

Open
2 tasks
rithviknishad opened this issue Jan 10, 2025 · 2 comments
Assignees

Comments

@rithviknishad
Copy link
Member

Action Items

  • Improve query client's global error handler to handle for each error type received from backend.
  • Create a utility fn. that detects field errors from the useMutation's onError and based on the mappings from the react-hook-form, set the error for fields. If there are more errors handle accordingly by rethrowing the unhandled errors.
@rithviknishad rithviknishad self-assigned this Jan 10, 2025
@yashgoyal0110
Copy link

@rithviknishad can i handle this issue?

@github-actions github-actions bot added needs-triage question Further information is requested labels Jan 10, 2025
@rithviknishad
Copy link
Member Author

i think the issue is already assigned to someone. feel free to take up issues that are not assigned 😄

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

No branches or pull requests

2 participants