ember-inspector icon indicating copy to clipboard operation
ember-inspector copied to clipboard

Data shows inconsistent record numbers.

Open BenjaminHorn opened this issue 9 years ago • 5 comments

My route creates a new records on visit, and on transitions deletes it.

store

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();
    }
  }

});

BenjaminHorn avatar Nov 18 '15 10:11 BenjaminHorn

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?

teddyzeenny avatar Nov 18 '15 14:11 teddyzeenny

Ember Inspector 1.9.3 Ember 2.2.0 Ember Data 2.1.0 jQuery 1.11.3 Ember CLI version: 1.13.8

BenjaminHorn avatar Nov 19 '15 16:11 BenjaminHorn

@rwwagner90 Will tackle early next week.

pbishop16 avatar Dec 05 '18 20:12 pbishop16

@pbishop16 sounds good!

RobbieTheWagner avatar Dec 06 '18 15:12 RobbieTheWagner

Possible duplicate of #464

RobbieTheWagner avatar Mar 27 '19 20:03 RobbieTheWagner