Skip to content

Instantly share code, notes, and snippets.

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