react-inspector
react-inspector copied to clipboard
ObjectPreview should be used in place of ObjectLabel
Collapsed nested objects/arrays in Chrome's devtools show the preview of the value not just Object
or Array
, upon expansion the preview goes away for objects, but not for arrays.
The preview also prevents line-wrapping using the following CSS:
TreeNode {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
I would love to be able to customize these things to suit my needs, but none of these things are configurable do to the way things are encapsulated. So for now this is simply a bug.