think-react-store icon indicating copy to clipboard operation
think-react-store copied to clipboard

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

Open catcian opened this issue 4 years ago • 1 comments

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 可以正常修改

catcian avatar Mar 23 '21 03:03 catcian

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

Har-zheng avatar May 14 '21 06:05 Har-zheng