Farhrurrazi

Results 8 comments of Farhrurrazi

` import { createStore, applyMiddleware } from 'redux'; import thunk from 'redux-thunk'; import rootReducer from './rootReducer'; export default function configureStore(initialState) { return createStore( rootReducer, initialState, applyMiddleware(thunk) ); } ` This...

From the first i look, the problem are with reducers. Do you have combine the reducers with 'toast' Reducer ? You can't put the two reducer in Create store, instead...

It will need to check reducer, action, container, component to know the problem

Actually i don't see any action to map to the container. ` export default connect()(FollowupScreen); ` will enough, if not i will need to see what 'actions' you put to...

So, maybe this is maybe help you. ` function mapDispatchToProps(dispatch) { return { dispatch, onClick: () => dispatch(increment()) }; }` Do you put the **dispatch** in returned object ? If...

Change onclick with your action/function to map, if none so no need to define this ``` export default connect( null, mapDispatchToProps, )(FollowupScreen)); ```

In container `import { prioritiesFetch } from '../actions'; const mapDispatchToProps = (dispatch) => { return { dispatch, prioritiesFetch: () => dispatch(prioritiesFetch()) } }; ` In your component `class FollowupScreen extends...

If action need parameter, it must provide in mapDispatchToProps ` import { prioritiesFetch,userInfoSave } from '../actions'; const mapDispatchToProps = (dispatch) => { return { dispatch, prioritiesFetch: () => dispatch(prioritiesFetch()), userInfoSave:...