in my React.js application I would like to use XState framework to solve following problem: in specific state I need to fetch data periodically (interval 1 second) and check