flex-table-card icon indicating copy to clipboard operation
flex-table-card copied to clipboard

Renders on every hass update

Open htmltiger opened this issue 3 years ago • 1 comments

Hi,

I have added a large table but after adding it the browser was so slow and found the cause to be flex table. just added this

   set hass(hass) {
        const config = this._config;
        const root = this.shadowRoot;
	console.log('set hass');

and in the chrome developer tools it is refreshing so many times in a second and it is redrawing the whole table.

I think shouldUpdate(changedProps) {... } function should help

Thanks.

htmltiger avatar May 24 '21 20:05 htmltiger

Seems that I see the same issue. If I open Code Inspector for a flex-table card, I observe a permanent updating of the card: a1 See that flickering on the DOM tree.

ildar170975 avatar Jun 25 '22 00:06 ildar170975

closed by https://github.com/custom-cards/flex-table-card/pull/103

daringer avatar Sep 03 '23 03:09 daringer