title: How to resume last state (history nodes)
body: <p>I'm learning x-state and I'm overwhelmed about its functionality, but I'm having issues understanding <code>history</code> nodes.</p>
  <p>I'm creating a state which should hold the execution of the machine until an action is triggered:</p>
  <p><a href="https://i.stack.imgur.com/vUqA6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vUqA6.png" alt="machine model" /></a></p>
  <p>So if the machine is in <code>AwaitingEmployeeSignature</code> or <code>AwaitingOnboardingCompletion</code>, and the <code>EA_REDLINED</code> event is triggered, I want to move the machine to the <code>Paused</code> state. But after a <code>RESUME</code> event (which is not implemented), I want to resume the last state <code>AwaitingEmployeeSignature</code> or <code>AwaitingOnboardingCompletion</code>, depending on what was the state before the <code>Paused</code> state</p>
  <p>As I understand history nodes, it can achieve what I want, but as far as I understood, it doesn't hold this state, but when on it, it automatically moves to the last state (which is not what I want). How can I stay in the <code>Paused</code> state, and only move to the previous state when the <code>RESUME</code> event is triggered?</p>
  <p>Thanks in advance!</p>