diff --git a/webclient/src/Feed.js b/webclient/src/Feed.js index 1e12d69..be6305f 100644 --- a/webclient/src/Feed.js +++ b/webclient/src/Feed.js @@ -20,6 +20,11 @@ function Feed({ updateCache }) { if (!updated) return; + if (!stories || !stories.length) { + setStories(newApiStories); + localStorage.setItem('stories', JSON.stringify(newApiStories)); + } + let currentStories = Array.isArray(stories) ? [...stories] : []; for (const newStory of [...newApiStories].reverse()) {