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
这个是例子上的代码
export default { state: { id: 123, name: 'cc', }, reducers: { setName(state, payload) { // console.log(state, payload); return { ...state, ...payload, }; }, }, effects: { async setNameAsync(dispatch, state, payload) { await new Promise((resolve) => setTimeout(resolve, 1000)); dispatch({ type: 'setName', payload, }); }, }, };
Object.getPrototypeOf(async function(){}).constructor 判断并不是AsyncFunction 为什么,但是在浏览器里面打开确实可以判断出是异步函数
The text was updated successfully, but these errors were encountered:
如果是这样是不是 我所有的异步方法都会去走同步更新?
Sorry, something went wrong.
No branches or pull requests
这个是例子上的代码
Object.getPrototypeOf(async function(){}).constructor 判断并不是AsyncFunction 为什么,但是在浏览器里面打开确实可以判断出是异步函数
The text was updated successfully, but these errors were encountered: