fix: Preload should reliably preload initial load (#2466)
This commit is contained in:
committed by
dermotduffy
parent
bc366626f1
commit
d8ad347dfa
@@ -145,11 +145,10 @@ export class AdvancedCameraCardViewerProvider extends LitElement implements Medi
|
||||
}
|
||||
|
||||
protected willUpdate(changedProps: PropertyValues): void {
|
||||
if (
|
||||
changedProps.has('viewerConfig') ||
|
||||
(!this._lazyLoadController && this.viewerConfig)
|
||||
) {
|
||||
this._lazyLoadController.setConfiguration(this.viewerConfig?.lazy_load);
|
||||
if (changedProps.has('viewerConfig')) {
|
||||
this._lazyLoadController.setConfiguration({
|
||||
lazyLoad: this.viewerConfig?.lazy_load,
|
||||
});
|
||||
}
|
||||
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user