-
Notifications
You must be signed in to change notification settings - Fork 100
Description
Complex data structures can include encoded data. When viewing the data expanded in an explorer you often want to decode that data to make it more readable. I tried to replace an existing viewer with react-inspector to realize that nodeRenderer
does not respect that data
param passed forward. I decode the information and pass it forward to ObjectLabel
which only uses it for deciding the label component and ignores the actual data instead using the top level object iterator.
Another way of thinking about this is the replacer option in JSON.stringify
For large data objects it can be too expensive to translate an entire model in one go, so its best if only the expanded options are converted, which is why you would want this built into ObjectInspector
instead of doing it ahead of time.