我目前使用react组件来容纳我的逻辑,只渲染null,但我在我的应用程序中添加了redux-saga,我宁愿将流程转移到saga。我还不知道如何使用生成器回调或从回调中调用生成器。以下是我到目前为止构建的内容:import { takeLatest, all, put, select } from 'redux-saga<
这样的故事很好用: yield navigator.geolocation.getCurrentPosition(function(pos) {console.log(`I am getPosition: ${pos.coords.latitude}, ${pos.coords.longitude}`);} let position = {};
yield n
我想用redux-saga,,产率,调用,效应和异步函数,得到这个函数的结果就是回调。(本例中为指纹,但这是一般情况)new Fingerprint2().get(function(result, components) {console.log(components) // an array of FP components