Hi! I had error for this code:
this.store.findRecord( 'animal', 1 )
.then( () => this.store.unloadAll( 'animal' ) )
.then( () => this.store.findRecord( 'animal', 1 ) ) ;
}
Error:
vendor.js:30401 TypeError: Cannot read property 'eachAttribute' of null
at new Snapshot (vendor.js:73205)
at InternalModel.createSnapshot (vendor.js:67158)
at _find (vendor.js:76062)
at Class._fetchRecord (vendor.js:74068)
at _fetchRecord (vendor.js:74129)
at Class._flushPendingFetchForType (vendor.js:74230)
at cb (vendor.js:31972)
at OrderedSet.forEach (vendor.js:31777)
at MapWithDefault.forEach (vendor.js:31980)
at Class.flushAllPendingFetches (vendor.js:74110)
ember-data LOC
Repo for reproduce (ember-twiddle down?)
I can be wrong, but it seems that this._isDematerializing in InternalModel should be equal to false after call store.unloadAll method.
Hi! I had error for this code:
Error:
ember-data LOC
Repo for reproduce (ember-twiddle down?)
I can be wrong, but it seems that
this._isDematerializinginInternalModelshould be equal to false after callstore.unloadAllmethod.