From 845d87ec55dbd1088b5c9c3a26c9d661c7d52ccc Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Wed, 19 Nov 2025 19:17:33 +0000 Subject: [PATCH] Logging --- webclient/src/Feed.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/webclient/src/Feed.js b/webclient/src/Feed.js index 78ce8e6..90ef3d9 100644 --- a/webclient/src/Feed.js +++ b/webclient/src/Feed.js @@ -35,7 +35,7 @@ function Feed({ updateCache }) { const fullStory = storyResult.story; await localForage.setItem(fullStory.id, fullStory); - console.log('preloaded', fullStory.id, fullStory.title); + console.log('Preloaded story:', fullStory.id, fullStory.title); updateCache(fullStory.id, fullStory); currentStories.unshift(newStory); @@ -47,6 +47,7 @@ function Feed({ updateCache }) { const finalStories = currentStories.slice(0, newApiStories.length); const removedStories = currentStories.slice(newApiStories.length); for (const story of removedStories) { + console.log('Removed story:', story.id, story.title); localForage.removeItem(story.id); } @@ -59,8 +60,6 @@ function Feed({ updateCache }) { ); }, [updateCache]); - console.log(stories); - return (