Skip to content
This repository has been archived by the owner on Jan 15, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant