Skip to content

Support data substitution/replacer #52

@jason-codaio

Description

@jason-codaio

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions