mjstahl / stated

Simply put state management for your JavaScript application

Home Page:https://www.npmjs.com/package/@mjstahl/stated

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add 'canEnter' and 'canLeave' properties

mjstahl opened this issue · comments

These function shall be defined on a state, and will be called when entering or leaving that state.

The function shall take the Stated object as the only argument.

If either function returns false, they shall not perform the respective functions (not enter, not leave)