Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function mapStateToProps(state) {
- return {
- dbposts: state.posts_reducer.db_posts,
- db_search_posts: state.posts_reducer.db_search_posts
- };
- }
- function mapDispatchToProps (dispatch) {
- return {
- posts_success: (posts) => dispatch(ACTIONS.get_db_posts(posts)),
- search_posts_success: (posts) => dispatch(ACTIONS.get_search_posts(posts)),
- remove_search_posts: () => dispatch(ACTIONS.remove_search_posts())
- }
- }
Add Comment
Please, Sign In to add comment