Merge pull request #4460 from sbwalker/dev

prevent breaking change for interactive components referencing PageState.Pages
This commit is contained in:
Shaun Walker
2024-07-23 12:48:13 -04:00
committed by GitHub

View File

@ -43,7 +43,7 @@
{ {
// trim PageState to mitigate page bloat caused by Blazor serializing/encrypting state when crossing render mode boundaries // 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 // please note that this performance optimization results in the PageState.Pages property not being available for use in Interactive components
PageState.Site.Pages = null; PageState.Site.Pages = new List<Page>();
} }
} }