Merge pull request #4145 from sbwalker/dev

fix SiteRouter issue when running on .NET MAUI
This commit is contained in:
Shaun Walker
2024-04-16 08:03:16 -04:00
committed by GitHub

View File

@ -171,9 +171,9 @@
visitorId = PageState.VisitorId;
}
if (PageState.RenderMode == RenderModes.Interactive)
if (PageState != null && PageState.RenderMode == RenderModes.Interactive)
{
// process any sync events (for synchrozing the client application with the server)
// process any sync events (for synchronizing the client application with the server)
var sync = await SyncService.GetSyncEventsAsync(lastsyncdate);
lastsyncdate = sync.SyncDate;
if (sync.SyncEvents.Any())