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

💡 [REQUEST] - Add error handling in the useLogout #613

Closed
IkbelTalebHssan opened this issue Jan 22, 2025 · 0 comments · Fixed by #616
Closed

💡 [REQUEST] - Add error handling in the useLogout #613

IkbelTalebHssan opened this issue Jan 22, 2025 · 0 comments · Fixed by #616
Assignees
Labels
question Further information is requested

Comments

@IkbelTalebHssan
Copy link
Collaborator

Start Date

No response

Implementation PR

No response

Reference Issues

No response

Summary

Add error handling in the useLogout mutation to handle cases where the logout API call fails

Basic Example

onError: (error) => {
  toast.error(t("message.logout_failed"));
}

Drawbacks

Consider adding the logout message failure in the translations as well.

Unresolved questions

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants