Skip to content

loadRelations loop #135

Closed
Closed
@Patrik-Lundqvist

Description

@Patrik-Lundqvist

Loading a second level of nested relations seems to create an infinite loop

Example:

// Load first customer
var customer1 = DS.get('customer', 1);

// Load the customers projects
DS.loadRelations('customer', customer1, ['project']).then(function () {
    var project1 = DS.get('project', 1);

    // Load the projects items
    DS.loadRelations('project', project1, ['item']);
});

Loading the projects items creates a loop which freezes the browser

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions