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

Addition of Multiple Languages, Refactor and Enhance Notification Store #924

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

alwialhuda11
Copy link

No description provided.

alwialhuda11 and others added 3 commits July 15, 2024 18:31
This PR improves the notification store implementation:

- Refactored notification creation into a separate `add` function
- Removed unused `notifications` array
- Increased nanoid length from 4 to 6 for better uniqueness
- Simplified `listenToChannel` logic
- Made notification type optional in `add` function
- Added checks for `params.action` before setting callback
- Improved error messaging for invalid notifications

These changes enhance code readability, maintainability, and flexibility while preserving existing functionality.

Note: The `remove` call in the action callback may need adjustment to target the correct notification ID.
@alwialhuda11 alwialhuda11 changed the title Addtion of Multiple Languages, Refactor and Enhance Notification Store Addition of Multiple Languages, Refactor and Enhance Notification Store Jul 15, 2024
@alwialhuda11
Copy link
Author

Hello @getneil could you please help to review?

Thank you

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

Successfully merging this pull request may close these issues.

1 participant