orbitjs / ember-orbit

Ember.js data layer built with Orbit.js
MIT License
320 stars 42 forks source link

The get attribute cache lookup error is hard to debug #404

Open chbonser opened 2 years ago

chbonser commented 2 years ago

Since upgrading from a late 0.17 beta to 0.17 we have been seeing a number of The ${this.type} record has been removed from its cache, so we cannot lookup the ${property} attribute. assertions from here in our error logs.

In some cases these errors have been reproducible and easy to fix. For example, we had some UI that was referencing stale objects after it had merged and deleted a fork in a form.

In other cases though I'm finding it hard or impossible to reproduce the error and therefore I am not sure where the error is originating.

Could someone provide some addition insight into this error that might help with our debug? Does this error only occur when a fork of the store is deleted or can it also occur when the main store receives updates?