You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The machine below requires moving through states stepOne and stepTwo, in addition to requiring an approval. The approved context property ought to be able to be set at any state (i.e. start, stepOne, stepTwo, or awaitingApproval) as it is independent of what "stage" you're at. It is, however, a necessary condition for reaching success.
This implementation (credit to @semopz) shows the machine acting properly as described above:
However, clicking APPROVAL_GIVEN while in the states stepOne, stepTwo, or awaitingApproval in the Visualizer (below) will erroneously reset the state to start.
The machine below requires moving through states
stepOne
andstepTwo
, in addition to requiring an approval. Theapproved
context property ought to be able to be set at any state (i.e.start
,stepOne
,stepTwo
, orawaitingApproval
) as it is independent of what "stage" you're at. It is, however, a necessary condition for reachingsuccess
.This implementation (credit to @semopz) shows the machine acting properly as described above:
https://codesandbox.io/s/zealous-sun-vt05g
However, clicking
APPROVAL_GIVEN
while in the statesstepOne
,stepTwo
, orawaitingApproval
in the Visualizer (below) will erroneously reset the state tostart
.https://xstate.js.org/viz/?gist=e59bcb81a7d79dadd2b1d06a1f9e55ec
The text was updated successfully, but these errors were encountered: