Skip to content

Commit

Permalink
Improved LazyLoading
Browse files Browse the repository at this point in the history
  • Loading branch information
auraticabhi committed Mar 5, 2024
1 parent 3ee69a2 commit 69c0db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/PostFeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const PostFeed = (props: Props) => {
const lastDocument = snapshot.docs[snapshot.docs.length - 1];
setLoadMore(lastDocument);

if(addFirst){
if(addFirst&&lastDoc==null){
setPosts(postsData)
setAddFirst(false);
}
Expand Down

0 comments on commit 69c0db9

Please sign in to comment.