emberjs / emberjs/ember-inspector

Data shows inconsistent record numbers.

Open
#495 5 comments 0 reactions 1 assignee Claimed by @pbishop16 View on GitHub
bug
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.

![store](https://cloud.githubusercontent.com/assets/5570232/11238599/07eb4a70-8de7-11e5-9af1-72f6b46e4a66.jpg)

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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.