Skip to content

Instantly share code, notes, and snippets.

@Waksuu
Created March 25, 2020 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Waksuu/9c4f6af40433ad7869658812f526a8b3 to your computer and use it in GitHub Desktop.
Save Waksuu/9c4f6af40433ad7869658812f526a8b3 to your computer and use it in GitHub Desktop.
const mapDispatchToProps = (
dispatch: ThunkDispatch<AppState, undefined, AppActions>
): LinkDispatchProps => ({
retrieveMovies: () => dispatch(retrieveMoviesAction(getAllMoviesREST)),
clearMovies: () => dispatch(clearMovies())
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment