上一页 1 ··· 216 217 218 219 220 221 222 223 224 ··· 494 下一页
摘要: Not all transitions should be taken immediately. Occasionally, we would like to conditionally take a transition. We do this through the use of "guards 阅读全文
posted @ 2020-01-19 22:52 Zhentiw 阅读(187) 评论(0) 推荐(0)
摘要: Activities are continuous, ongoing side effects that are triggered by entering a particular state, and only stop when that state is exited. In the exa 阅读全文
posted @ 2020-01-19 22:35 Zhentiw 阅读(144) 评论(0) 推荐(0)
摘要: Consider a text input. It would be impossible for anyone to model every value you could possibly put into it, because the number of possible values is 阅读全文
posted @ 2020-01-19 22:19 Zhentiw 阅读(167) 评论(0) 推荐(0)
摘要: 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 阅读(281) 评论(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)
上一页 1 ··· 216 217 218 219 220 221 222 223 224 ··· 494 下一页