-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Overview
Enable RSC streaming for comment loading on story detail pages.
Parent Epic: #70
Priority: P1
Prerequisites
- 4.7: Create Item Detail Page Component #88 (4.7: Create Item Detail Page Component)
- 4.8: Create Comment Component (Recursive) #89 (4.8: Create Comment Component)
- 4.11: Create Loading Skeletons #92 (4.11: Create Loading Skeletons)
Next Issues (after this is complete)
- 7.3: Write Integration Tests (verify streaming behavior)
Acceptance Criteria
- Comments load progressively (don't block story details)
- Deep comment threads handled efficiently
- Suspense boundaries wrap comment tree
- Comment skeletons show during loading
- Story header/details visible before comments load
Implementation Notes
Comments are often the slowest part of HN pages due to:
- Many nested API calls for child comments
- Deep recursion in comment trees
Streaming allows the story details to appear immediately while comments load in the background.
Consider wrapping comment tree in Suspense:
<Suspense fallback={<CommentTreeSkeleton />}>
<CommentTree comments={comments} />
</Suspense>coderabbitai