Skip to content

Commit 067fbf5

Browse files
Update posts-list.component.ts (#42)
* Update posts-list.component.ts * Update posts-list.component.html
1 parent 5396fd6 commit 067fbf5

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/app/reader/_components/main-page/posts-list/posts-list.component.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,6 @@
8585
@for (post of posts(); track post.id) {
8686
<app-post-card [post]="post"></app-post-card>
8787
}
88-
@if (posts2) {
89-
@for (post of posts2; track post.id) {
90-
<app-post-card [post]="post"></app-post-card>
91-
}
92-
}
9388
</div>
9489
</div>
9590
</div>

src/app/reader/_components/main-page/posts-list/posts-list.component.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import { ReaderApiService } from '../../../_services/reader-api.service';
3636
changeDetection: ChangeDetectionStrategy.Default,
3737
schemas: [CUSTOM_ELEMENTS_SCHEMA],
3838
})
39-
export class PostsListComponent implements OnInit {
39+
export class PostsListComponent {
4040
scroll = viewChild<ElementRef<HTMLElement>>('scrollContainer');
4141

4242
postStore = inject(PostsStore);
@@ -54,11 +54,6 @@ export class PostsListComponent implements OnInit {
5454
this.initializeScrollingForMobileView();
5555
}
5656

57-
ngOnInit() {
58-
//TODO: FIX HACK FOR PRERENDERING
59-
this.applyPrerenderingHack();
60-
}
61-
6257
onScroll(event: Event) {
6358
const target = event.target as HTMLElement;
6459
const scrollLeft = target.scrollLeft;

0 commit comments

Comments
 (0)