D
Size: a a a
D
Вт
Вт
OC
Вт
OC
Вт
Y
const dispatch = useDispatch();.then(() => {});```Ts ругается на "then()":
...
dispatch(/*action: action(actionProps)*/)
Property 'then' does not exist on type '(dispatch: any, getState: any) => any'.
Y
useDispatch<(prop: any) => Promise<any>>()
Вт
AH
Вт
A
AH
YO
A
Вт
Вт
YO
A