I was not working with RxJS for quite some time and today I'm struggling with such issue that in some cases the inner observable emits even though the it should not since date provided to it is in the future. If I pass dates which have 07 in the month then it works ok, when I pass 06 (which is June, so still in the future), 08, 11 as the month in the date, it will fail,
https://stackblitz.com/edit/dayjs-playground-dijmkxi1?file=package.json,index.js
Maybe I'm blind today, but all of the dates are in the future, but for some reason the scheduler emits new value right away for some dates, and it works correctly for the others.
Basically what I want to achieve is to aggregate all of the future dates from some request and create observable which would trigger on each of these dates and perform refresh of the data (while waiting for the previous refresh, if pending, to finish). Maybe it can be done easier ?
Any clues 😄 ?