Skip to content
New issue

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

useDispatchHook(key) 调用异步方法没有成功bug #3

Open
catcian opened this issue Mar 23, 2021 · 1 comment
Open

useDispatchHook(key) 调用异步方法没有成功bug #3

catcian opened this issue Mar 23, 2021 · 1 comment

Comments

@catcian
Copy link

catcian commented Mar 23, 2021

think-react-store version 1.6.71
node version v15.2.1
os mac version 11.2.3

`const dispatchs = useDispatchHook('user')
dispatchs(()=>({
type: 'getUserAsync',
payload: {
id: '03',
username: 'CatCian3'
}
}))

const dispatchs = useDispatchHook()
dispatchs({
key: 'user',
type: 'getUserAsync',
payload: {
id: '03',
username: 'CatCian3'
}
})
`
未成功修改,不加key 可以正常修改

@Har-zheng
Copy link

我们问题是类似的 最近在学习这个

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants