摘要:
Implement the advanced util type MutableKeys, which picks all the mutable (not readonly) keys into a union. For example: type Keys = MutableKeys<{ rea 阅读全文
posted @ 2022-11-30 14:48
Zhentiw
阅读(39)
评论(0)
推荐(0)
摘要:
Invoke by Promise: import { createMachine, interpret, send } from "xstate"; const machine = createMachine({ initial: "loading", states: { loading: { o 阅读全文
posted @ 2022-11-30 02:07
Zhentiw
阅读(61)
评论(0)
推荐(0)
摘要:
function countBehavior(state, event) { if (event.type "INC") { return { ...state, count: state.count + 1 } } } function createActor(behavior, initialS 阅读全文
posted @ 2022-11-30 01:35
Zhentiw
阅读(42)
评论(0)
推荐(0)

浙公网安备 33010602011771号