redux-essentials-example-app icon indicating copy to clipboard operation
redux-essentials-example-app copied to clipboard

Notifications are missing `isNew` and `read` fields

Open h1-the-swan opened this issue 4 years ago • 2 comments

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: https://github.com/reduxjs/redux-essentials-example-app/blob/49fd0eab438e738bf5cb54431fd75dc4ae0fb817/src/api/server.js#L290-L301

h1-the-swan avatar Sep 30 '21 17:09 h1-the-swan

Yeah, I changed the API contents when I updated it to cover RTK Query, but I forgot to remove that line from the text.

markerikson avatar Sep 30 '21 17:09 markerikson

OK. I'm having some strange unexpected behavior wrt these fields in this part of the tutorial. I thought it might be related to these missing fields, but I'm not sure it is.

h1-the-swan avatar Sep 30 '21 18:09 h1-the-swan