diff --git a/src/Uno.UI.RemoteControl/HotReload/ClientHotReloadProcessor.MetadataUpdate.cs b/src/Uno.UI.RemoteControl/HotReload/ClientHotReloadProcessor.MetadataUpdate.cs index b50345f910c6..5c83f4fd5239 100644 --- a/src/Uno.UI.RemoteControl/HotReload/ClientHotReloadProcessor.MetadataUpdate.cs +++ b/src/Uno.UI.RemoteControl/HotReload/ClientHotReloadProcessor.MetadataUpdate.cs @@ -433,7 +433,7 @@ public static void ForceHotReloadUpdate() try { Instance?._status.ConfigureSourceForNextOperation(HotReloadSource.Manual); - UpdateApplication(Array.Empty()); + UpdateApplicationCore([]); } finally { @@ -446,6 +446,20 @@ public static void ForceHotReloadUpdate() /// [EditorBrowsable(EditorBrowsableState.Never)] public static void UpdateApplication(Type[] types) + { + if (types is { Length: > 0 }) + { + UpdateApplicationCore(types); + } + else + { + // https://github.com/dotnet/aspnetcore/issues/52937 + // Explicitly ignore to avoid flicker on WASM + _log.Trace("Invalid metadata update, ignore it."); + } + } + + private static void UpdateApplicationCore(Type[] types) { var hr = Instance?._status.ReportLocalStarting(types); diff --git a/src/Uno.UI.RemoteControl/Uno.UI.RemoteControl.Wasm.csproj b/src/Uno.UI.RemoteControl/Uno.UI.RemoteControl.Wasm.csproj index cfafc63ebd39..81f88d5dc916 100644 --- a/src/Uno.UI.RemoteControl/Uno.UI.RemoteControl.Wasm.csproj +++ b/src/Uno.UI.RemoteControl/Uno.UI.RemoteControl.Wasm.csproj @@ -77,7 +77,7 @@ <_OverrideTargetFramework>$(TargetFramework) - <_TargetNugetFolder>$(NuGetPackageRoot)\$(PackageId.ToLowerInvariant())\$(UnoNugetOverrideVersion)\uno-runtime\$(UnoRuntimeIdentifier.ToLowerInvariant()) + <_TargetNugetFolder>$(NuGetPackageRoot)\$(PackageId.ToLowerInvariant())\$(UnoNugetOverrideVersion)\uno-runtime\$(TargetFramework)\$(UnoRuntimeIdentifier.ToLowerInvariant()) <_OutputFiles Include="$(TargetDir)**" /> diff --git a/src/Uno.UI/WasmCSS/Uno.UI.css b/src/Uno.UI/WasmCSS/Uno.UI.css index f1d07141cc2d..5ddbcd753a6c 100644 --- a/src/Uno.UI/WasmCSS/Uno.UI.css +++ b/src/Uno.UI/WasmCSS/Uno.UI.css @@ -277,3 +277,8 @@ input::-ms-clear { background: var(--selection-background); color: var(--selection-color); } + +/* Uno has its own HR indicator: hide default dotnet indicator. */ +#dotnet-hotreload-toast { + visibility: collapse +}