Technically this would happen too on SavedCommentsScreen (note the plural) if there were 0 saved comments left.
The short-term solution was to apply "window.location.reload()', but there has to be some data that is returned that we can test to use as a re-direct (otherwise maybe just redirect SavedCommentScreen to SavedCommentsScreen when reloaded, and if SavedCommentsScreen has 0 comments come back, to redirect to the home page.
Currently there are some bugs here.
To replicate:
Save a Comment
Click on SavedComment to get to the single SavedCommentScreen
Delete the comment
The handleButtonClick on 'SavedComment.js' just dispatches the delete action and refreshes the page.
Technically this would happen too on SavedCommentsScreen (note the plural) if there were 0 saved comments left.
The short-term solution was to apply "window.location.reload()', but there has to be some data that is returned that we can test to use as a re-direct (otherwise maybe just redirect SavedCommentScreen to SavedCommentsScreen when reloaded, and if SavedCommentsScreen has 0 comments come back, to redirect to the home page.
Currently there are some bugs here.
To replicate: