Reputation: 62753
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:
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
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:
into:
Upvotes: 5