Go to Github

The complete guide to static typing in "React & Redux" apps using TypeScript

https://github.com/piotrwitek/react-redux-typescript-guide/issues/84Go to Github

RewardedView inDispatch<> type parameter provides a type-safe dispatch() function#84

code-hungercreated the issue 3 months ago

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.


  1. piotrwitekwas rewarded $2765 days ago
  2. piotrwiteksubmittedPR5 days ago
  3. piotrwitekstarted working6 days ago
  4. loadbalance-sudachi-kunfunded $2566 days ago
  5. boostiofunded $209 days ago

Total Fund


Funded by


Work status

piotrwitek has finished work

It took about 23 hours to finish

https://github.com/piotrwitek/react-redux-typescript-guide/pull/96Go to PR