How to access redux-store from within react's componentDIdMount()
问题 In the following code I am trying to pass the state.userData.userDetails from the redux-store to getleftpaneProductCatalogue() , but state.userData.userDetails is unaccessible to componentDidMount() . I tried assigning the state.userData.userDetails to this.prop.userProfile , but still this.prop.userProfile is an empty value. How to access the prop within componentDidMount ? import React,{Component} from 'react'; import { connect } from 'react-redux'; import {Row, Col } from 'react