Skip to content

Redux Essentials => Performance and Normalizing data => adding a badge for notifications #4508

@Reprovo

Description

@Reprovo

When adding a badge for notifications, for the purpose of the course only, we could use !n.new since all notifications are marked as 'read', otherwise the badge doesn't appear. Nothing important but i spent a few minutes trying to see If I had typed something wrong.

const numUnreadNotifications = notifications.filter(n => !n.read).length

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions