Skip to content

Commit 7ae60dd

Browse files
jonfullerCopilot
andcommitted
Update src/HealthNerd.Wasm/Pages/Home.razor
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent ee0424b commit 7ae60dd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/HealthNerd.Wasm/Pages/Home.razor

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,9 @@
224224
SetStatus("Generating Excel…", "");
225225
StateHasChanged();
226226

227-
var currentSettings = _settings; // capture for background thread
228-
var excelBytes = await Task.Run(() => BuildExcel(exportBytes, customBytes, currentSettings, tzName));
227+
var currentSettings = _settings;
228+
// NOTE: In Blazor WebAssembly this still runs on the UI thread; large exports may temporarily freeze the UI.
229+
var excelBytes = BuildExcel(exportBytes, customBytes, currentSettings, tzName);
229230

230231
SetStatus("Downloading…", "");
231232
StateHasChanged();

0 commit comments

Comments
 (0)