State Modeling in React with XState Eventless Transitions Solution
Transcript from the "Eventless Transitions Solution" Lesson
>> All right, so let's take a look at exercise five and use event list transitions. So what we want to do is we want on these running states to have a transition that basically is always taken if it meets a certain condition. So when running, we always want to go to the expired state if the total elapsed time exceeds the duration.
[00:01:30] So tick is always going to be doing its thing and you're going to see that's actually important for us to do in the next lesson because we do wanna keep listening for those ticks. So yeah, let's check this out and see if our logic works. All right, so 54321 it gonna go to the expired state, which does.
[00:01:55] So we know our logic works there.