+65
-9
lib/screens/home/feed_screen.dart
·········
fix: improve error handling for pagination failures
P1 Fixes:
- [P1] Gate full-screen error on empty list to prevent pagination
failures from wiping existing posts
- Show inline error widget at bottom of list when pagination fails,
allowing users to retry without losing their position
UX Improvements:
- Pagination errors now show a small error card at the bottom with
retry button instead of replacing entire feed
- Users can continue viewing loaded posts even when loadMore() fails
- Better distinction between initial load failures (full-screen error)
and pagination failures (inline error)
Code Quality:
- Add warning comment about list equality in context.select to prevent
future bugs if FeedProvider switches to in-place list mutations
Testing:
- All 44 tests still passing
- No breaking changes to existing behavior
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
·········