摘要:
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)
摘要:
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
阅读(185)
评论(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
阅读(141)
评论(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
阅读(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)

浙公网安备 33010602011771号