阅读背景:

[XState] Conditionally Transition to States with Guards in XState

来源:互联网 

Not all transitions should be taken immediately. Occasionally, we would like to conditionally take a transition. We do this through the use of "guards". A "guard" is a predicate function (a function that returns a boolean) that is set on a transition object's Not all transitions should be taken immediately.




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: