Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support data substitution/replacer #52

Open
jason-codaio opened this issue Apr 23, 2018 · 1 comment
Open

Support data substitution/replacer #52

jason-codaio opened this issue Apr 23, 2018 · 1 comment

Comments

@jason-codaio
Copy link

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.

@ndelangen
Copy link
Member

Yea that makes sense, would you be able to open a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants