const dates = [{start:'03/06/2020', end: '03/09/2020'}, {start:'03/12/2020', end: '03/03/2021'}, ...]
const fetchData = service.get(page = 1, dates[0]) and service.get(page = 2, dates[0])
retrieves the necessary data, but considering multiple pages might be involved. Each page's data must be collected before moving on to the next date.
data.subscribe(resp=> somesubject.next(this.values = this.values.concat(resp)))
'resp' represents the result of each API call. The values for each date are merged together on the client side.
What would be the most effective approach to manage this situation? Feel free to ask if you need further clarification.