pancake-frontend
pancake-frontend copied to clipboard
perf: Fetch articles in homepage only when visible
PR-Codex overview
The focus of this PR is to implement intersection observer for lazy loading articles in the News and Blog sections.
Detailed summary
- Added
useIntersectionObserver
for lazy loading articles inNewsSection
andBlogCard
- Updated
useAllNewsArticle
anduseLatestArticle
to accept anenabled
parameter - Refactored the use of
useAllNewsArticle
anduseLatestArticle
inNewsSection
andBlogCard
components
✨ Ask PR-Codex anything about this PR by commenting with
/codex {your question}