我有一个回调,我需要返回true或false来触发一些外部操作,我需要在这个回调中进行API调用,所以我需要获取状态并在回调中调度一些操作,我不知道我是否可以使用eventChannel,因为这个回调不能是一个生成器to wait for the action to finish and then return something
// based on the response from the API// I know how to block t
react 从API中获取数据。我使用的是redux,redux和redux-saga。我已经抽象了可重用的代码,以获取useFetching自定义钩子中的数据。actionArgs => { store.dispatch(action(actionArgs)); // does not work}
我不知