improve PageState trimming
This commit is contained in:
@ -43,7 +43,7 @@
|
||||
{
|
||||
// trim PageState to mitigate page bloat caused by Blazor serializing/encrypting state when crossing render mode boundaries
|
||||
// please note that this performance optimization results in the PageState.Pages property not being available for use in Interactive components
|
||||
PageState.Site.Pages = new List<Page>();
|
||||
PageState.Site.Pages = null;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -30,11 +30,11 @@ namespace Oqtane.UI
|
||||
|
||||
public List<Page> Pages
|
||||
{
|
||||
get { return Site.Pages; }
|
||||
get { return Site?.Pages; }
|
||||
}
|
||||
public List<Language> Languages
|
||||
{
|
||||
get { return Site.Languages; }
|
||||
get { return Site?.Languages; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user