-
Notifications
You must be signed in to change notification settings - Fork 27
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
RangeError: Maximum call stack size exceeded #3
Comments
@aleksdp Hi, you have circular relationship ( It fixed in version 1.0.12, update please. |
@olosegres Thanks! You are doing great things!:) |
console.log(JSON.stringify(dataFormatter.deserialize(json))) TypeError: Converting circular structure to JSON Now Object couldn't be stringified with JSON.stringify() |
Your code calls JSON.stringify, try to log deserialized data without stringifying |
@aleksdp I cant imagine case when you have to use stringifying this data in project code |
@olosegres So simple. I use React+Redux for server render and I need to gather together whole my redux store and serialize it to string and send to client side |
@olosegres I know that I can keep jsonapi data in redux as is and then use dataformatter for data visuilization, but it don't approach for me |
@aleksdp The logic inherent in the construction of simplified objects assumes the creation of circular structures from recursive JSON API relationships (I can't imagine more logical implementation for such situations, if you have ideas - tell me). You may just delete unneeded circular relation from deserialized object :) Or you may pay attention to other ways to dehydrate & rehydrate store state with JSON API & Jsona data:
|
@aleksdp Hi! |
@olosegres I with my team decided turn off server side rendering, so I'm not getting this error, I think we can close this bug because this problem is obvious. For the future I think I will make reducer to store data as it is and I will transform data with help jsona only in data view component, it must decide this trouble :) thanks ! |
Hi!
test.json.txt
I'm getting error when my api service respond to me this json that includes object with block_translations, if I remove it from json all is works fine. Where is error ? In test.json or?
The text was updated successfully, but these errors were encountered: