Redux Essentials => Performance and Normalizing data => adding a badge for notifications
Reprovo opened this issue · 1 comments
Reprovo commented
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
timdorr commented
This has already been suggested, but is correct as-is: #4418 (comment)