flex-table-card
flex-table-card copied to clipboard
Renders on every hass update
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.
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:
See that flickering on the DOM tree.
closed by https://github.com/custom-cards/flex-table-card/pull/103