From 6cfb4b317f0d0705362e114322c7d50102cb92f1 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Thu, 20 Nov 2025 23:02:59 +0000 Subject: [PATCH] feat: Immediately display stories on first load Co-authored-by: aider (gemini/gemini-2.5-pro) --- webclient/src/Feed.js | 5 +++++ 1 file changed, 5 insertions(+) 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()) {