摘要: Trying to structure the state logic of an application as a single machine can begin to become unwieldy when we have too many states. It is often bette 阅读全文
posted @ 2020-01-21 21:18 Zhentiw 阅读(418) 评论(0) 推荐(0)
摘要: We can invoke a callback as a service when we enter a state in XState. This gives us the ability to trigger various functionality by responding to eve 阅读全文
posted @ 2020-01-21 17:38 Zhentiw 阅读(636) 评论(0) 推荐(0)
摘要: Unbeknownst to many, promises are state machines. They exist in either an idle, pending, resolved or rejected state. Because they can be modeled as st 阅读全文
posted @ 2020-01-21 17:17 Zhentiw 阅读(430) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2020-01-21 03:54 Zhentiw 阅读(4) 评论(0) 推荐(0)
摘要: The passing of time can be represented as an event in XState. Rather than requiring the user to send an event after an amount of time has passed, XSta 阅读全文
posted @ 2020-01-21 03:32 Zhentiw 阅读(133) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2020-01-21 03:27 Zhentiw 阅读(6) 评论(0) 推荐(0)