-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Immutable.fromJS: Detect cycles (RangeError: Maximum call stack size exceeded) #653
Comments
👍 |
Any solution ?? |
leebyron
added a commit
that referenced
this issue
Mar 8, 2017
leebyron
added a commit
that referenced
this issue
Mar 8, 2017
leebyron
added a commit
that referenced
this issue
Mar 8, 2017
This was referenced Oct 16, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When trying to convert circular data structures using
Immutable.fromJS
, it currently throwsRangeError: Maximum call stack size exceeded
. Instead of this, couldfromJS
follow the semantics ofJSON.stringify
and throw a more meaningful error, similar toTypeError: Converting circular structure to JSON
?Pardon if this is a duplicate, but I searched the existing issues for this and couldn’t find it.
Please let me know if you need any more details and thanks for building Immutable.js 😄
Repro: https://jsbin.com/kupavixuhe/edit?js,console
The text was updated successfully, but these errors were encountered: