feat: Persist new stories and improve layout consistency
This commit is contained in:
@@ -56,6 +56,9 @@ function Feed({ updateCache }) {
|
||||
currentStories.splice(existingStoryIndex, 1);
|
||||
}
|
||||
currentStories.unshift(newStory);
|
||||
|
||||
localStorage.setItem('stories', JSON.stringify(currentStories));
|
||||
setStories(currentStories);
|
||||
} catch (error) {
|
||||
let errorMessage;
|
||||
if (error.name === 'AbortError') {
|
||||
|
||||
Reference in New Issue
Block a user