think-react-store
think-react-store copied to clipboard
useDispatchHook(key) 调用异步方法没有成功bug
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 可以正常修改
我们问题是类似的 最近在学习这个