xstate相关内容

XState:等待调用函数的响应

我计划使用XState来管理应用程序后端的状态。调用API时,会在状态更改成功时调用函数。函数调用的结果必须作为API的响应返回。 // Returns a Promise, e.g.: // { // id: 42, // name: 'David', // friends: [2, 3, 5, 7, 9] // friend IDs // } function getUser ..
发布时间:2022-02-28 09:54:23 其他开发

XState:等待被调用函数的响应

我计划使用XState来管理应用程序后端的状态.调用api时,将在状态成功更改后调用一个函数.函数调用的结果必须作为api的响应返回. // Returns a Promise, e.g.: // { // id: 42, // name: 'David', // friends: [2, 3, 5, 7, 9] // friend IDs // } function getUs ..
发布时间:2020-07-10 00:15:58 其他开发