Brett DeWoody
Brett DeWoody

Reputation: 62753

Inspecting ImmutableJS objects in DevTools

I've started working with ImmutableJS and in general, really like it.

But there's one major deal-breaker - viewing ImmutableJS objects in DevTools, like a List, displays the List constructor instead of the List items. Here's an example:

enter image description here

Ideally, the elements of the List would be shown so they could be inspected.

Is there a way, other than using ImmutableJS methods like toArray(), to view Immutable objects in DevTools?

Upvotes: 2

Views: 751

Answers (1)

Wazner
Wazner

Reputation: 3102

There's a Chrome extension that does what you want. It's also available on GitHub: https://github.com/andrewdavey/immutable-devtools

Essentially, it turns this:

Before

into:

After

Upvotes: 5

Related Questions