Cleanup calls to Knockout observableArray

Improved Knockout observableArray
This commit is contained in:
djmaze 2021-01-22 12:23:20 +01:00
parent fa5476e486
commit b6f0b634fb
47 changed files with 251 additions and 276 deletions

View file

@ -4,10 +4,10 @@ import ko from 'ko';
class TemplateUserStore {
constructor() {
this.templates = ko.observableArray([]);
this.templates = ko.observableArray();
this.templates.loading = ko.observable(false).extend({ throttle: 100 });
this.templatesNames = ko.observableArray([]).extend({ throttle: 1000 });
this.templatesNames = ko.observableArray().extend({ throttle: 1000 });
this.templatesNames.skipFirst = true;
this.subscribers();