Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
protected deferUpdate() {
if (this._updateScheduled) {
return;
}
this._updateScheduled = true;
deferUpdate(() => {
this.forceUpdate();
this._updateScheduled = false;
});
}
}
private _scheduleUpdate() {
if (this._updateIsDelayed) {
return;
}
this._updateIsDelayed = true;
deferUpdate(() => {
this._updateTemplatesCallback(this._templates);
this._updateIsDelayed = false;
});
}
}