when componet load on condition the mapStateToProps is not gettin store values code example
Example: redux connect
//Connects your component to Redux-store
export default connect(mapState, mapDispatch)(Component)
//Connects your component to Redux-store
export default connect(mapState, mapDispatch)(Component)