Closed sandstrom closed 10 years ago
@sandstrom It would be great if you could test that scenario against canary.
@sly7-7 Our code code has been refactored since April, but I didn't a preliminary test just now and it seems like it's gone (probably after SSOT-refactor). The tricky thing is that this was a race condition, depending on latency, so it only manifested itself in certain conditions to begin with.
However, I'll close this now. We can always reopen if it would resurface. Thanks for pinging!
Thanks :)
When a computed property on a 1-to-1 relationship references the other part of the relationship, and it has just been loaded into the store (or is in the process of being loaded, after say a POST), an extra GET request is fired.
When this extra GET request is returned there is duplicate data in the store (two objects with the same id).
A rough order of events is this:
this.notifyPropertyChange('data');
).get
triggersstore.fetchRecord(belongsTo);
Semi-complete example of what causes this: