Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4829

How do I reset a record's relationships? (related: pushPayload)

$
0
0

@maffews wrote:

For performance reasons, I load one record from local storage via pushPayload. This record has both sync and async relationships, and all of the relationships are null after the pushPayload call, and calling record.get('relationship-key') will not cause them to be loaded. In order for them to work again, I need to call reload prior to get.

Is there a way to reset these relationships without re-fetching the record? (At least the async relationships?) I want the record's state to be the same as it would be after it's freshly loaded.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4829

Trending Articles