emberjs / emberjs/ember-inspector
Data shows inconsistent record numbers.
- Dominant language
- JavaScript
- Stars
- 969
- Forks
- 292
- PR merge metrics
- No merged PRs in 30d
Description
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:
``` javascript
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();
}
}
});
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.