improve PageState trimming

This commit is contained in:
sbwalker
2024-07-17 11:53:04 -04:00
parent 5610a14e49
commit b942a84b15
8 changed files with 16 additions and 46 deletions

View File

@ -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;
}
}