-
Notifications
You must be signed in to change notification settings - Fork 77
loadRelations loop #135
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
@Patrik-Lundqvist Can I see how you've defined the relations for these resources? |
Yes of course
Here is the logged error: http://pastebin.com/ntbCMbdn |
@Patrik-Lundqvist The test I added in the above commit seems to reflect the relations you described, and it passes. At this point I would need you to create a Plunkr or JSBin which I can debug. |
The problem was in my data from the api. The returned item json object had a nested foreign key relation which caused this problem. Example:
Handling of nested foreign key relations in returned data should probably be its own issue. |
It should have worked with the nested data. I'll investigate that. |
@Patrik-Lundqvist Actually, can you post here what endpoints were hit (the urls) and what data was returned by each? |
Here is a plunker displaying the error: http://plnkr.co/edit/U7j42d?p=preview |
Thanks |
Loading a second level of nested relations seems to create an infinite loop
Example:
Loading the projects items creates a loop which freezes the browser
The text was updated successfully, but these errors were encountered: