want to take a specific data in reducer . I got an error which says
TypeError: Cannot read property 'data' of undefined
I'm calling the action at useEffect
with a empty array dependency
useEffect(() => {
props.getOrderDetails(props.match.params.guid)
}, [])
here's where I'm trying to use it
<div>
{props.orderDetails[0].data}
</div>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…