-
-
Notifications
You must be signed in to change notification settings - Fork 402
Open
Labels
Description
Describe the bug
currentCount is not preserved in Counter.razor in samples/BlazorExample
Version and Platform
CSLA version: 10.0.0-beta-0011-gc72d4fb04f with .NET 10
OS: Windows 11
Platform: .NET 10
Version and Platform
CSLA version: 9.1.0 with .NET 9
OS: Windows 11
Platform: .NET 9
Code that Fails
if (applicationContext.LocalContext.Contains("counter"))
{
var value = applicationContext.LocalContext["counter"];
currentCount = value == null ? 0 : (int)value;
}
When reentering the counter page,
applicationContext.LocalContext.Contains("counter")
is not existing any more.
I could provide the complete code, but it is basically the same as in the samples. I only updated some dlls in .NET 9 and changed to CSLA 9.10 and did the same in .NET 10.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
In Progress