ember-inspector
ember-inspector copied to clipboard
Data shows inconsistent record numbers.
My route creates a new records on visit, and on transitions deletes it.

But as u can see under model types (4) does not the same record number as in the list. Now if I leave the route, the record will be removed (count goes down to (3)), but in the list the green record becomes black, and stays on the list.
However if I change to an another model (on MODEL TYPES panel), and change back, the list-panel shows the cleaned up correct list. It is just not synchronized with the MODEL TYPES panel.
If it need it, here is the code of the route:
export default Ember.Route.extend({
model: function() {
return this.store.createRecord('somemodel');
},
actions: {
willTransition: function(transition) {
var record = this.controller.get('model');
console.log(record);
record.deleteRecord();
}
}
});
Thanks for reporting this. It's obviously a bug (in the inspector or in Ember Data). Can you post a screenshot of your "Info" pane in the inspector? Also which ember-cli version are you using?
Ember Inspector 1.9.3 Ember 2.2.0 Ember Data 2.1.0 jQuery 1.11.3 Ember CLI version: 1.13.8
@rwwagner90 Will tackle early next week.
@pbishop16 sounds good!
Possible duplicate of #464