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

Read notification count resets on page refresh #23

Open
Noor-infoarc opened this issue May 30, 2023 · 1 comment
Open

Read notification count resets on page refresh #23

Noor-infoarc opened this issue May 30, 2023 · 1 comment
Assignees

Comments

@Noor-infoarc
Copy link

Noor-infoarc commented May 30, 2023

Hi.

Is there any way to pass some sort of variable in the data object with other properties like image, detailPage, etc, which allows me to specify which notifications have been read or not? Something like this:

const DEFAULT_NOTIFICATION = [
{
image: require("../../images/user.png"),
message: "New message.",
detailPage: "/",
receivedTime: "1 min ago",
markAsRead: false
}
];

Also how do I run this project?

Please do get back to me.
Thank you.

@takshch
Copy link

takshch commented Feb 24, 2024

markAsRead can not be used because this name implies the action.

hasRead is a better name and it can be added in the notification data to specify whether the notification has been read or not.

const DEFAULT_NOTIFICATION = [
 {
    image: require("../../images/user.png"),
    message: "New message.",
    detailPage: "/",
    receivedTime: "1 min ago",
    hasRead: false
 }
];

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

2 participants