From 3fcace3152383336d70cc03b4583af219f825929 Mon Sep 17 00:00:00 2001 From: "Steven T. Cramer" Date: Sun, 23 Jun 2024 20:22:00 +0700 Subject: [PATCH 1/4] Update nugets --- Directory.Packages.props | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 94beffec7..b1eca1f03 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -24,7 +24,7 @@ all - + @@ -39,7 +39,7 @@ - + From c1bf03e3206ed561b0b2414d1137ba8bc03b2bf2 Mon Sep 17 00:00:00 2001 From: "Steven T. Cramer" Date: Sun, 23 Jun 2024 20:40:50 +0700 Subject: [PATCH 2/4] Blazor-State to TimeWarp.State in html content --- .../Test.App.Client/Features/CloneTest/Pages/ClonablePage.razor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Test.App/Test.App.Client/Features/CloneTest/Pages/ClonablePage.razor b/Tests/Test.App/Test.App.Client/Features/CloneTest/Pages/ClonablePage.razor index 042d93119..8f9349320 100644 --- a/Tests/Test.App/Test.App.Client/Features/CloneTest/Pages/ClonablePage.razor +++ b/Tests/Test.App/Test.App.Client/Features/CloneTest/Pages/ClonablePage.razor @@ -8,7 +8,7 @@

- The StateTransactionBehavior middleware in Blazor-State is designed to use ICloneable if it is implemented and Anyclone otherwise..
+ The StateTransactionBehavior middleware in TimeWarp.State is designed to use ICloneable if it is implemented and Anyclone otherwise..
This test is to verify that the IClonable interface is working as expected.
The clone method intentionally creates a new instance where the count is always 42.
And the Increment method increments the count by 1.
From 3d888d028826b2fa57034f984c02b93d2ab4ab37 Mon Sep 17 00:00:00 2001 From: "Steven T. Cramer" Date: Sun, 23 Jun 2024 22:02:39 +0700 Subject: [PATCH 3/4] ReduxDevtools respects JsonIgnore AnyClone respects IgnoreDataMember and JsonIgnore so we don't want Either to try to serialize a semaphore. But we want ReduxDevTools to serialize the Guid. But not AnyClone. --- Source/TimeWarp.State/State/State.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/TimeWarp.State/State/State.cs b/Source/TimeWarp.State/State/State.cs index 13a81d0de..10e23564f 100644 --- a/Source/TimeWarp.State/State/State.cs +++ b/Source/TimeWarp.State/State/State.cs @@ -1,9 +1,13 @@ namespace TimeWarp.State; +using System.Text.Json.Serialization; + public abstract class State : IState { [IgnoreDataMember] public Guid Guid { get; protected init; } = Guid.NewGuid(); + + [JsonIgnore] public SemaphoreSlim Semaphore { get; } = new(1, 1); ///

From 8982bb6a45a75f9e1f44120cfc2cfb2713fcb7c9 Mon Sep 17 00:00:00 2001 From: "Steven T. Cramer" Date: Sun, 23 Jun 2024 22:03:34 +0700 Subject: [PATCH 4/4] Bump version --- Directory.Build.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Build.props b/Directory.Build.props index 5fd183486..6e681f513 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -3,7 +3,7 @@ Steven T. Cramer TimeWarp State - 11.0.0-beta.40+8.0.300 + 11.0.0-beta.41+8.0.300 https://timewarpengineering.github.io/blazor-state/ TimeWarp.State; TimeWarp-State; TimeWarpState; BlazorState; Blazor; State; Blazor-State; MediatR; Mediator; Pipeline; Redux; Flux Logo.png