Add support for fetching thumnails separately

This commit is contained in:
Dermot Duffy
2022-07-31 10:21:43 -07:00
parent c3500ce461
commit 5fbbf127ab
7 changed files with 173 additions and 58 deletions
+13
View File
@@ -138,6 +138,19 @@ export class FrigateCardLive extends LitElement {
}
}
/**
* Determine whether the element should be updated.
* @param _changedProps The changed properties if any.
* @returns `true` if the element should be updated.
*/
// eslint-disable-next-line @typescript-eslint/no-unused-vars
protected shouldUpdate(_changedProps: PropertyValues): boolean {
// Don't process updates if it's in the background and a message was
// received (otherwise an error message thrown by the background live
// component may continually be re-spammed hitting performance).
return !this._inBackground || !this._messageReceivedPostRender;
}
/**
* Component connected callback.
*/