piotrwitek/react-redux-typescript-guide
The issue has been solved
Dispatch<> type parameter provides a type-safe dispatch() function #84
code-hunger posted onGitHub
Redux 4 introduces a type-safe dispatch function, which means that the argument passed to dispatch()
must be the type of the first Dispatch<Action>
parameter. If I knew this ealier, it would save me two hours debugging and searching why dispatch() with an incomplete action doesn't trigger an error :) I think this deserves its section in the guide.