Merge pull request #3743 from sbwalker/dev

add @attribute [StreamRendering] attribute to Routes.razor and rollback #3739
This commit is contained in:
Shaun Walker
2024-02-08 09:26:06 -05:00
committed by GitHub

View File

@ -3,6 +3,7 @@
@inject IInstallationService InstallationService @inject IInstallationService InstallationService
@inject IJSRuntime JSRuntime @inject IJSRuntime JSRuntime
@inject SiteState SiteState @inject SiteState SiteState
@attribute [StreamRendering]
@if (_initialized) @if (_initialized)
{ {
@ -69,13 +70,11 @@
SiteState.AuthorizationToken = AuthorizationToken; SiteState.AuthorizationToken = AuthorizationToken;
SiteState.IsPrerendering = (HttpContext != null) ? true : false; SiteState.IsPrerendering = (HttpContext != null) ? true : false;
_installation = new Installation { Success = true }; _installation = await InstallationService.IsInstalled();
SiteState.Alias = new Alias { AliasId = 1, SiteId = 1, TenantId = 1, Name = "localhost:44357", IsDefault = true, BaseUrl = "", Protocol = "http://" }; if (_installation.Alias != null)
// _installation = await InstallationService.IsInstalled(); {
// if (_installation.Alias != null) SiteState.Alias = _installation.Alias;
// { }
// SiteState.Alias = _installation.Alias;
// }
_initialized = true; _initialized = true;
} }