Resolve issue where components are not being rendered interactively

This commit is contained in:
sbwalker 2024-02-12 08:51:41 -05:00
parent 856afcf3bf
commit 8d9a050ad6
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