上一页 1 ··· 214 215 216 217 218 219 220 221 222 ··· 491 下一页
摘要: XState provides the send function to create an action that will send the event passed in to the machine. If we provide the second argument to the send 阅读全文
posted @ 2020-01-19 20:21 Zhentiw 阅读(318) 评论(0) 推荐(0)
摘要: Transitions come in two varieties: "external" and "internal". By default, a transition is considered external. This means that a transition will exit  阅读全文
posted @ 2020-01-19 20:11 Zhentiw 阅读(280) 评论(0) 推荐(0)
摘要: For example, we have a interface: We are using it with NestJS backend, in order to validate the request with meanful runtime error message, we can use 阅读全文
posted @ 2020-01-19 17:45 Zhentiw 阅读(269) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2020-01-19 04:27 Zhentiw 阅读(3) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2020-01-19 03:04 Zhentiw 阅读(4) 评论(0) 推荐(0)
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2020-01-19 02:53 Zhentiw 阅读(9) 评论(0) 推荐(0)
摘要: While it's powerful enough to have Machine.transition, it can get tedious constantly passing it a state and an event. It would be nice if we had a fun 阅读全文
posted @ 2020-01-18 22:45 Zhentiw 阅读(157) 评论(0) 推荐(0)
摘要: numerating the possible states of a function is a sound way to write a function, but it is imperative and could benefit from abstraction. We can do th 阅读全文
posted @ 2020-01-18 17:35 Zhentiw 阅读(163) 评论(0) 推荐(0)
摘要: There are several fundamental problems with trying to manage the state of a function through the use of booleans. The first is often referred to as "b 阅读全文
posted @ 2020-01-18 17:11 Zhentiw 阅读(369) 评论(0) 推荐(0)
摘要: Fire and Forgot: Fire an action and not wait it complete. Fire and Wait: FIre an action and wait for result. Fire and Forgot Fire and Wait: Using `mer 阅读全文
posted @ 2020-01-17 15:55 Zhentiw 阅读(419) 评论(0) 推荐(0)
上一页 1 ··· 214 215 216 217 218 219 220 221 222 ··· 491 下一页