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/c790b0cea76e183c4c45b0917932531a to your computer and use it in GitHub Desktop.
Save Waksuu/c790b0cea76e183c4c45b0917932531a to your computer and use it in GitHub Desktop.
...
export const mapDispatchToProps = (getAllMovies: () => Promise<MovieDTO[]>) => (dispatch: ThunkDispatch<AppState, undefined, AppActions>): LinkDispatchProps => ({
retrieveMovies: () => dispatch(retrieveMoviesAction(getAllMovies)),
clearMovies: () => dispatch(clearMovies())
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment