Closed dotterian closed 4 years ago
Am I right that it is TS only problem and you will see sync
property in the browser?
Yes, it's types related and if I ignore typechecking for this line it works perfectly.
connect
is Redux method, do you have any idea how to fix types there?
Sorry, have no idea how to fix it for now
Redux's
connect
implores thatdispatch
is of typeRedux.Dispatch
, hence we can't useLoguxDispatch
and code like this will produce errors:Extracting MapDispatchToProps into separate variable with parameter type of LoguxDispatch also breaks things:
At the time I have no ideas how to solve this problem except
// @ts-ignore
, which is obviously bad.One possible (but not so good) solution that comes to my mind is to export
connect
from@logux/redux
with modified typescript signatures.