perf: improve slot UI + device search speedup

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
Rachel Powers
2024-04-23 16:16:44 -07:00
parent c1a451ad47
commit eb4463c8ab
5 changed files with 158 additions and 70 deletions

View File

@@ -183,10 +183,6 @@ export const VMDeviceMixin = <T extends Constructor<LitElement>>(
}
}
update(changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void {
super.update(changedProperties);
this.updateDevice();
}
}
return VMDeviceMixinClass as Constructor<VMDeviceMixinInterface> & T;
};
@@ -239,6 +235,7 @@ export const VMDeviceDBMixin = <T extends Constructor<LitElement>>(superClass: T
"vm-device-db-loaded",
this._handleDeviceDBLoad.bind(this),
);
this.deviceDB = window.VM.vm.db!;
return root;
}