We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
function* saga() { yield take(ACTION) // 阻塞: 将等待 action yield call(ApiFn, ...args) // 阻塞: 将等待 ApiFn (如果 ApiFn 返回一个 Promise 的话) yield call(otherSaga, ...args) // 阻塞: 将等待 otherSaga 结束 yield put(...) // 阻塞: 将同步发起 action (使用 Promise.then) const task = yield fork(otherSaga, ...args) // 非阻塞: 将不会等待 otherSaga yield cancel(task) // 非阻塞: 将立即恢复执行 // or yield join(task) // 阻塞: 将等待 task 结束 }
这句话: yield put(...) // 阻塞: 将同步发起 action (使用 Promise.then)
yield put(...) // 阻塞: 将同步发起 action (使用 Promise.then)
但是我看最新的Glossary.md已经翻译过来了
function* saga() { yield take(ACTION) // 阻塞: 将等待 action yield call(ApiFn, ...args) // 阻塞: 将等待 ApiFn (如果 ApiFn 返回一个 Promise 的话) yield call(otherSaga, ...args) // 阻塞: 将等待 otherSaga 结束 yield put(...) // 非阻塞: 将同步发起 action (使用 Promise.then) yield put.resolve(...) // 阻塞 const task = yield fork(otherSaga, ...args) // 非阻塞: 将不会等待 otherSaga yield cancel(task) // 非阻塞: 将立即恢复执行 // or yield join(task) // 阻塞: 将等待 task 结束 }
The text was updated successfully, but these errors were encountered:
难受,看个文档还不是最新的,还要github 文档 和 英文的一起看
Sorry, something went wrong.
No branches or pull requests
这句话:
yield put(...) // 阻塞: 将同步发起 action (使用 Promise.then)
但是我看最新的Glossary.md已经翻译过来了
The text was updated successfully, but these errors were encountered: