Xstate: Transition fails

Created on 19 Jun 2019  路  2Comments  路  Source: davidkpiano/xstate

Bug or feature request?

Bug

Description:

Transitioning a machine from one state to another fails

(Bug) Expected result:

Transition to idle state

(Bug) Actual result:

No transition occurs, stays at editingNew

Link to reproduction or proof-of-concept:

Minimal Reproduction on CodeSandbox

invalid

All 2 comments

Not a bug. You forgot the on property.

Adding // @ts-check will help you surface errors like these:

Screen Shot 2019-06-18 at 11 32 18 PM

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ifokeev picture ifokeev  路  3Comments

hnordt picture hnordt  路  3Comments

kurtmilam picture kurtmilam  路  3Comments

dakom picture dakom  路  3Comments

drmikecrowe picture drmikecrowe  路  3Comments