I'm using redux-saga in my react native application and I have some events which will happen at some point of time.
E.g.
ev0 - 01.01.2021, 08:00
ev1 - 01.01.2021, 15:00
ev2 - 02.01.2021, 09:00
etc.
There should be a saga which waits for next event and dispatches some actions and waits for the next event.
My first thought was to get the closest event time when app starts and wait for event0Time - timestampNow
milliseconds in saga. After that, dispatch my actions and wait for event1Time - event0Time
milliseconds and so on.
But I don'r really like this approach, it looks tricky.
So I wonder if there is a better way to achieve what I need.
Maybe a "best practice" or something...