mirror of
https://github.com/Matysh/houseplan-card
synced 2026-10-07 23:19:14 +00:00
fix(2.5D): reuse projection snapshot during settings toggle
The beta performance gate exposed a duplicate 2.5D scene resolution in one Lit update: willUpdate built the projection snapshot and immediately cleared it before render. Invalidate first so the computed snapshot is reused. Issue: #649 User-Visible: no
This commit is contained in:
@@ -3983,7 +3983,7 @@ export class HouseplanCard extends LitElement {
|
||||
}
|
||||
|
||||
protected willUpdate(changed: PropertyValues): void {
|
||||
this._syncVolumetricSetting(); this._isoProjectionSnapshot = null; this._summary?.willUpdate();
|
||||
this._isoProjectionSnapshot = null; this._syncVolumetricSetting(); this._summary?.willUpdate();
|
||||
if (changed.has('hass')) {
|
||||
// Observe every user/connection transition, including A→B→A while an
|
||||
// old promise is waiting. Equality at completion must not revive it.
|
||||
|
||||
Reference in New Issue
Block a user