-
Notifications
You must be signed in to change notification settings - Fork 4
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 for Error Object? #7
Comments
And is there a way to directly display primitive types? Like, strings, numbers, boolean. 'hello world' new Date() true Symbol.iterator |
I found that the Error object was rendered as a valid URL, but React does not allow direct rendering of Error objects, resulting in an exception being thrown. |
Moreover, strings in the form of |
Hi, @pansong291! Can you provide a way to reproduce this case, it might be something specific, because error objects seem to render fine. Also, have you tried the demo? https://monojack.github.io/react-object-view/ {
err: new Error('unknow'),
string: 'hello world',
date: new Date(),
bool: true,
iterator: Symbol.iterator
} As for the |
Hello, @monojack ! I have already tried the online examples and pasted the JavaScript Object you provided into the Data input box, but an exception occurred as shown in the image below. Then, this project is rendered based on Object, and the provided |
The text was updated successfully, but these errors were encountered: