#1061: toast-repetition resolved
Issue #1061 by mk0380
toast-repetition resolved
Pull Request Details
Description
This pull request resolves an issue where React toast messages were sometimes displayed several times in quick succession, giving users the impression they missed reading the first message or even spaming. The fix ensures that only one toast is visible at a time for each unique message content.
Fixes
Fixes #932
Type of PR
- [x] Bug fix
- [ ] Feature enhancement
- [ ] Documentation update
- [ ] Refactoring
- [ ] Other (specify): ___
Summary
Added a toastId for each toast, which assigns a unique ID each time a toast is generated, thus resolving the issue of multiple duplicate toasts appearing simultaneously.
#### Screenshots
Issue
!image
Resolved
!image
Additional Notes
- Tested thoroughly across different scenarios to ensure consistent behavior.
- Ensured compatibility with existing toast component configurations.
Checklist
- [x] I have read and followed the Pull Requests and Issues guidelines.
- [x] The code has been properly linted and formatted using
npm run lint:fix
and npm run format:fix
.
- [x] I have tested the changes thoroughly before submitting this pull request.
- [x] I have provided relevant issue numbers, snapshots, and videos after making the changes.
- [ ] I have not borrowed code without disclosing it, if applicable.
- [x] This pull request is not a Work In Progress (WIP), and only completed and tested changes are included.
- [x] I have tested these changes locally.
- [x] My code follows the project's style guidelines.
- [ ] I have updated the documentation accordingly.
- [x] This PR has a corresponding issue in the issue tracker.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
- New Features
- Enhanced toast notification functionality with unique identifiers for better user feedback across various components during actions like logout, sign-in, and community creation.
- Introduced a new utility function to generate unique toast identifiers.
- Bug Fixes
- Improved handling of toast notifications to prevent overlap and ensure distinct messaging.
- Documentation
- Updated internal documentation to reflect new functionality related to toast management.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->0 Replies