-
Notifications
You must be signed in to change notification settings - Fork 851
Open
Description
The tutorial says: "Our fake API is already sending back the notification entries with isNew
and read
fields, so we can use those in our code."
But the notifications sent from the server don't seem to have those fields:
redux-essentials-example-app/src/api/server.js
Lines 290 to 301 in 49fd0ea
const notifications = [...Array(numNotifications)].map(() => { | |
const user = randomFromArray(db.user.getAll()) | |
const template = randomFromArray(notificationTemplates) | |
return { | |
id: nanoid(), | |
date: faker.date.between(pastDate, now).toISOString(), | |
message: template, | |
user: user.id, | |
} | |
}) | |
return notifications |
Metadata
Metadata
Assignees
Labels
No labels