You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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,
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 ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
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 ?
Beta Was this translation helpful? Give feedback.
All reactions