Load books only when needed not in constructor

This commit is contained in:
aditya.chandel
2025-01-17 22:03:12 -07:00
parent 42ccd2ce4d
commit ad741440b4
4 changed files with 15 additions and 9 deletions
-1
View File
@@ -21,7 +21,6 @@ export class AppComponent implements OnInit {
private rxStompService = inject(RxStompService);
private eventService = inject(EventService);
ngOnInit(): void {
this.rxStompService.watch('/topic/book-add').subscribe((message: Message) => {