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
I've been reading over the docs for Choo and decided to work through the State Machine article—after watching davidkpiano's talk on the subject I wanted to get a better feel for how it works.
In the code example the constructor's method is named next, but then further down is called as transition().
@goto-bus-stop Sure thing! I was considering it when I was submitting the issue, but wasn't sure what the export statement was doing. I am not familiar with ES6, but it looks like module.exports, so I imagine it is there to illustrate that the state machine should be used as a module?
I've been reading over the docs for Choo and decided to work through the State Machine article—after watching davidkpiano's talk on the subject I wanted to get a better feel for how it works.
In the code example the constructor's method is named
next
, but then further down is called astransition()
.After getting the names to match, I also had to remove
export
and turn thetimer
values into strings to get the example to work (with Node.js).The text was updated successfully, but these errors were encountered: