-
-
Save Waksuu/e3c96c7594d8f050f12da5cb54a0eeae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
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