Use Aetheria state handles for current entity UI reads

This commit is contained in:
Meta Vens 2026-06-27 13:58:42 +01:00
commit 2884cef870
4 changed files with 37 additions and 10 deletions

View file

@ -1136,7 +1136,10 @@ private void Update()
try
{
currentEntityKey = ResolveClient()
.CurrentEntityAsync()
.Aetheria()
.Current
.Entity
.LatestAsync()
.GetAwaiter()
.GetResult()
?.EntityKey ?? "";
@ -1287,7 +1290,10 @@ private void Update()
try
{
var current = ResolveClient()
.CurrentEntityAsync()
.Aetheria()
.Current
.Entity
.LatestAsync()
.GetAwaiter()
.GetResult();
if (current != null && string.Equals(current.EntityKey, entityKey, StringComparison.Ordinal))