-
-
Notifications
You must be signed in to change notification settings - Fork 595
toJSON or JSON.stringify is unresponsive #415
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
Comments
Can you provide code that reproduces this? Also, information on the environment would be helpful (node.js vs browser, which version) |
Thank you.
"parse-server": "^2.3.6", |
No errors are indicated but the application becomes unresponsive, every time. |
I think it goes into an infinite loop. |
I notice there are recursive loops because the server now automatically include all pointers. How can this functionality be disabled so that I can manually include pointers that I want included in a query? |
I closed the issue thinking the problem was with parse-server. I noticed that the details of pointers in arrays are included by default, I did not have to use "include" and the server actually returned pointers, but the SDK populated them with details.
IntrestedArea has an interest key, which is an array of pointers. The details of each pointer is included. And because interest has a pointer interestedArea, the pointer details is also included and the leads to infinite loop. In a situation like this JSON.stringify(result) renders the application unresponsive. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
When I call toJSON or JSON.stringify in Javascript SDK the application becomes unresponsive.
The text was updated successfully, but these errors were encountered: