Query params not using loading state


#1

Ember data’s query params do not seem to make use of the loading substates, instead pause the transition until the model resolves. Note, that I am explicitely requesting for the model to be refreshed.

export default Ember.Route.extend({
  queryParams: {
    category: {
      refreshModel: true
    }
  },
  model: function(params) {
    return this.store.findQuery('klub', params);
  }
});

Is this documented behaviour, or a bug in ember-data?


#2

Ah, no. It does work. I was confused, because the current model is only replaced after the new model’s promise resolves, instead of being set to null while the new model is loading.