Load books only when needed not in constructor
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user