andrewdavey / immutable-devtools

Chrome Dev Tools custom formatter for Immutable-js values
BSD 3-Clause "New" or "Revised" License
661 stars 29 forks source link

Record types not shown correctly in all cases #5

Closed jonaskello closed 8 years ago

jonaskello commented 8 years ago

If I define an Immutable Record, it seems the inspector cannot format it:

    let MyRecord = Immutable.Record({foo: 4});
    let bar = new MyRecord({bar: 3});

image

It would be nice if we could inspect Record types and directly see the properties on them.

jonaskello commented 8 years ago

Actually, it seems like it is already implemented but does not work all of the time. I have this code at a place in my larger code base:

    let MyRecord = Immutable.Record({foo: 4});
    let bar = new MyRecord({foo: 3});
    debugger;

I print bar, then hit F8, then the next time I get to the debugger line, I print bar again. The third time around it works. Maybe has something to do with the remark "Object value at the left was snapshotted when logged, value below was evaluated just now." as seen in the screenshot below:

image

langpavel commented 8 years ago

Hi @jonaskello

Sorry for late response. Are you sure to install immutable-devtools before console was opened? There was some weird behavior of Chrome observed too.. Can you please describe more in detail your problem (or solution if you got it), please? Thanks a lot!

langpavel commented 8 years ago

Closing this one. Please reopen it if issue persist.

jonaskello commented 8 years ago

I've not seen this lately so probably it got fixed.

langpavel commented 8 years ago

@jonaskello Thanks for feedback