Hi ๐ , I feel like I'm the noobest newbie.
I have a machine that I overly simplified here: https://codesandbox.io/s/suspicious-fast-49rcps?file=/src/index.ts
I need to have something that ends up calling that invoke you see in the example every new day right after midnight. I'll be using date-fns to catch the new day, and I'm guessing a setInterval every few seconds will do the rest but... how do I model it in XState? Do I need some sort of long-running... thing that exists and works for the entire lifespan of my application no matter what state the machine is in?
I tried my luck with the search engine here on Discord but didn't find anything (probably because I'm too much of a noob even for choosing the right search terms).