Closed Pythonidaer closed 1 year ago
Need to learn more about React Redux Toolkit before I can solve this through Redux.
For now, Just added a window.location.reload() to the end of the deletion onClick. When the page refreshes, the new state updates.
Again this is similar to the Save issue, but different in some ways.
You will get a Comment if you try to delete it a second time stating "Comment cannot be found" - this is because the Comment was deleted the first time, but the page/screen has not been re-rendered to reflect this update.