Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@
@for (post of posts(); track post.id) {
<app-post-card [post]="post"></app-post-card>
}
@if (posts2) {
@for (post of posts2; track post.id) {
<app-post-card [post]="post"></app-post-card>
}
}
</div>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import { ReaderApiService } from '../../../_services/reader-api.service';
changeDetection: ChangeDetectionStrategy.Default,
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
export class PostsListComponent implements OnInit {
export class PostsListComponent {
scroll = viewChild<ElementRef<HTMLElement>>('scrollContainer');

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

ngOnInit() {
//TODO: FIX HACK FOR PRERENDERING
this.applyPrerenderingHack();
}

onScroll(event: Event) {
const target = event.target as HTMLElement;
const scrollLeft = target.scrollLeft;
Expand Down