resolve interactive page load

This commit is contained in:
sbwalker
2025-08-04 13:09:37 -04:00
parent 77949331e2
commit 2cefab1c64

View File

@ -48,7 +48,7 @@
private bool _initialized = false;
private bool _installed = false;
private string _display = "display: none;"; // prevents flash on initial interactive page load when using prerendering
private string _display = "display: none;"; // prevents flash on initial interactive page load
private PageState _pageState { get; set; }
@ -86,10 +86,7 @@
if (firstRender)
{
_display = "";
if (PageState != null && PageState.Site.Prerender)
{
StateHasChanged(); // required or else the UI will not refresh
}
StateHasChanged();
}
}