File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed
src/app/reader/_components/main-page/posts-list Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments