Skip to content

Commit

Permalink
[BUGFIX relationships] fix infinite retry bug for failed relationship…
Browse files Browse the repository at this point in the history
… fetches

Cherry picked from emberjs#6112
  • Loading branch information
Chase McCarthy committed May 20, 2019
1 parent 8088cf4 commit f559741
Show file tree
Hide file tree
Showing 10 changed files with 320 additions and 217 deletions.
6 changes: 5 additions & 1 deletion addon/-private/system/many-array.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ import recordDataFor from './record-data-for';
@uses Ember.MutableArray, Ember.Evented
*/
export default EmberObject.extend(MutableArray, Evented, {
// here to make TS happy
_inverseIsAsync: false,
isLoaded: false,

init() {
this._super(...arguments);

Expand All @@ -65,7 +69,7 @@ export default EmberObject.extend(MutableArray, Evented, {
@property {Boolean} isLoaded
*/
this.isLoaded = false;
this.isLoaded = this.isLoaded || false;
this.length = 0;

/**
Expand Down
Loading

0 comments on commit f559741

Please sign in to comment.