上一页 1 ··· 215 216 217 218 219 220 221 222 223 ··· 494 下一页
摘要: 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 阅读(419) 评论(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 阅读(637) 评论(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 阅读(432) 评论(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 阅读(134) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2020-01-21 03:27 Zhentiw 阅读(6) 评论(0) 推荐(0)
摘要: drcorator should be named as '<directive_name>Directive': 阅读全文
posted @ 2020-01-20 20:30 Zhentiw 阅读(109) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2020-01-20 02:15 Zhentiw 阅读(6) 评论(0) 推荐(0)
摘要: Can you walk and talk at the same time? If so, you've experienced what it's like to be in two states at the same time. Hopefully, those two states hav 阅读全文
posted @ 2020-01-20 02:04 Zhentiw 阅读(248) 评论(0) 推荐(0)
摘要: As our state machines grow more complex, we might find ourselves in a situation where a state should only exist if the machine is already in another s 阅读全文
posted @ 2020-01-19 23:07 Zhentiw 阅读(206) 评论(0) 推荐(0)
上一页 1 ··· 215 216 217 218 219 220 221 222 223 ··· 494 下一页