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

Create wrapper hook for react-toastify #281

Open
ivanng-oursky opened this issue Jul 15, 2022 · 0 comments
Open

Create wrapper hook for react-toastify #281

ivanng-oursky opened this issue Jul 15, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request [zube]: Backlog

Comments

@ivanng-oursky
Copy link
Contributor

ivanng-oursky commented Jul 15, 2022

create a wrapper react hook around the react-toastify library to:

  • ensure all content passed into toast are localized
  • no duplicated toast from same error if called within useEffect

proposed API:

toast: {
  error: (messageID: MessageID, {locale config obj}, {toast option obj}): Promise<void>;
  info: (messageID: MessageID, {locale config obj}, {toast option obj}): Promise<void>;
  // and other toast types
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request [zube]: Backlog
Projects
None yet
Development

No branches or pull requests

3 participants