Nested Objects not rendering
See original GitHub issueI have data coming in like this
var orderSchema = new Schema({
clubCode : { type: String },
shopID : { type: Number },
externalID : { type: String },
orderID : { type: String, index: true },
orderNumber : { type: String },
type : { type: String },
serviceCode : { type: String },
unseen : { type: Boolean, default: true },
externalStatus : {
status : { type: String },
time : { type: Date, default: Date.now }
},
externalStatusHistory : [{
status : { type: String },
time : { type: Date, default: Date.now }
}],
status : {
status : { type: String },
time : { type: Date, default: Date.now }
},
statusHistory : [{
status : { type: String },
time : { type: Date, default: Date.now }
}],
member : {
memberNumber : { type: String },
firstName : { type: String },
lastName : { type: String },
phoneNumber : { type: String },
verified : { type: Boolean, default: false }
},
vehicle : {
year : { type: String },
make : { type: String },
model : { type: String },
trim : { type: String },
color : { type: String },
tagNumber : { type: String },
tagState : { type: String },
vin : { type: String },
odometer : { type: Number }
}
});
but griddle only renders clubID, orderID etc not vehicle.year or status.type.
Issue Analytics
- State:
- Created 8 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Updating the field of the nested object not re-rendering
I'm facing a issue that react doesn't recognize the change I'.ve made on the propriety of useState nested object and consequently not re- ......
Read more >Nested object data not rendering properly : r/reactjs - Reddit
I am fetching data from firestore and because one field is a doc reference I am then fetching that document. I compile the...
Read more >Swagger nested object properties not rendering properly #8369
For nested objects, when description and type are provided, both the description and type should show properly in every level of a nested...
Read more >[Solved]-Deep nested array of objects not rendering-Reactjs
The problem is that you are not returning anything from inside the innermost map function. return Object.keys(secondData).map((thirdData, i) => { return ...
Read more >Updating Objects in State - React Docs
This code modifies the object assigned to position from the previous render. But without using the state setting function, React has no idea...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
i am also facing this issue.
We’ve tried to make this a bit nicer in version 1.0. Please see “Nested data” from the just released Griddle 1.0 documentation. 👍