How to use the devextreme/core/utils/common.deferUpdate function in devextreme

To help you get started, we’ve selected a few devextreme examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DevExpress / devextreme-react / src / core / templates-renderer.tsx View on Github external
protected deferUpdate() {
        if (this._updateScheduled) {
            return;
        }
        this._updateScheduled = true;

        deferUpdate(() => {
            this.forceUpdate();
            this._updateScheduled = false;
        });
    }
}
github DevExpress / devextreme-react / src / core / template-updater.ts View on Github external
private _scheduleUpdate() {
        if (this._updateIsDelayed) {
            return;
        }

        this._updateIsDelayed = true;

        deferUpdate(() => {
            this._updateTemplatesCallback(this._templates);
            this._updateIsDelayed = false;
        });
    }
}