I am receiving data from firebase server in chunks while rendering that data requires a library which insists on observable contains Array. I am somehow unable to push a new data chunk to existing data chunk array contained by observable,
From dataservice I am calling by subject's next and trying to add a new calEvent
this.homeWorkerService.eventSubject.next(calEvent);
In component, I have following code
events$: Observable<Array<CalendarEvent<any>>>;
and ngOnInit, I am supplying data to it like
this.events$ = this.service.eventSubject.asObservable();
Could you please suggest any way by which I can add a new event to observable which already hold my events.
PS : I am using this lib to render calendar and using remoteDB to render events.
Thanks,