question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nested Objects not rendering

See original GitHub issue

I 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:closed
  • Created 8 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
atapatelcommented, Apr 15, 2016

i am also facing this issue.

0reactions
ryanlanciauxcommented, Feb 24, 2017

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. 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found