Merge pull request #3768 from sbwalker/dev

Resolve issue where components are not being rendered interactively
This commit is contained in:
Shaun Walker 2024-02-12 08:52:07 -05:00 committed by GitHub
commit 8e03cf9fc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,5 @@
@namespace Oqtane.UI
@inject SiteState ComponentSiteState // can refer to either a static or interactive SiteState - it depends on the render mode
@inject SiteState ComponentSiteState
@inject IStringLocalizer<ModuleInstance> Localizer
@inject ILogService LoggingService
@inherits ErrorBoundary

View File

@ -9,6 +9,11 @@ namespace Oqtane.Models
/// </summary>
public class Route
{
/// <summary>
/// parameterless constructor to prevent deserialization exceptions
/// </summary>
public Route() { }
/// <summary>
/// default constructor
/// the route parameter can be obtained from NavigationManager.Uri on client or HttpContext.Request.GetEncodedUrl() on server