Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Basic Prototype of state machines

State Machine examples:

  1. Player Machine
  2. Stepper Machine
  3. Fetching Machine

Codesandbox -> CodeSandbox - CodeSandbox

Resources:

XState terminology and definitions

Actions

Entry, exit, transition actions (do actions) XState has inline and serialized actions

Context

Extended state, assigning via asign(…) Reading from state.context A car can move or stop, but at the same time, it has different attributes like color, speed, length, etc.

Guards

Inline and Serialized guards Multiple guarded transitions

Final States

type final can triger onDone callback

finished: {
  type: 'final',
},
...
onDone: {
  target: '.loading',
},

About

XState investigation, basic machines

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages