Hello.

Seems that there is bug when binding 'filters' config option of the store via viewmodel like this:



Code:



viewModel: {
stores: {
testStore: {
type: 'mystore',
filters : '{filtersFormula}'
},
formulas: {
filtersFormula: {
...
}
}
}
}

Fiddle: http://ift.tt/1wn0vYq

Please inspect console 'filterchange' log message after changing 3 times of the combo. All filters still exists.

The next override can help to solve this issue:



Code:



Ext.define('Spa.override.data.AbstractStore',{
override: 'Ext.data.AbstractStore',
applyFilters: function (filters, filtersCollection) {
if (filtersCollection) filtersCollection.clear();
return this.callParent(arguments);
}
});