Skip to content

State Machines

LiveStore can be used to implement state machines or together with existing state machine libraries (e.g. XState).

The basic idea is to listen query results and emit events when the query results change. The state machine side effects can then further commit new mutations to LiveStore.

Example

// TODO (contribution welcome)