Say I have a fairly simple nested, fetched object.
It contains many pieces of information and the schema is fixed.
Some items are nested such:
obj:{
one:{
x: "A",
y: "B",
more:{
z: [1, 2],
0: "C",
extra: {
a1: "b1",
a2: "b2"
}
}
}
}
That's as deep as it goes.
Redux stores this information fine.
Why cant I retrieve one.more.0 or one.more.extra.a1 in react?
I can get one.x.
I can set state with one.more, then retrieve .0, but not .extra.a1.
I understand there are supposed to be reasons for this, but where this simple use-case exists, I find it troubling that it requires hoops to use information which is both accessible and available otherwise.
Any suggestions to get around this which don't involve normalising/redesigning the data to fit the package?
Ideal world: this.props.aReducer.one.more.extra.a1
Many thanks
EDIT* Is this possible, or must such nested values be knit together pre-render:
render(){
return(
<div>
{this.props.aReducer.one.more.extra.a1}<br />
</div>
)
}