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

Refactor test #79

Open
sahsisunny opened this issue Nov 30, 2023 · 0 comments
Open

Refactor test #79

sahsisunny opened this issue Nov 30, 2023 · 0 comments

Comments

@sahsisunny
Copy link
Contributor

  • You could create a separate function to handle the creation of a new toast. This would make the code more modular and easier to test.
  • The showToast and dismissToast functions can be wrapped in the useCallback hook to prevent unnecessary re-renders.

Originally posted by @vinit717 in #76 (comment)

@sahsisunny sahsisunny changed the title - You could create a separate function to handle the creation of a new toast. This would make the code more modular and easier to test. Refactor test Nov 30, 2023
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

1 participant