# How Ducky compares

This page sets Ducky 2.0 beside the most widely used state-management options for Blazor: [Fluxor](https://github.com/mrpmorris/Fluxor), the most downloaded Redux-style library for Blazor on nuget.org; [TimeWarp.State](https://github.com/TimeWarpEngineering/timewarp-state), formerly Blazor-State; and the hand-written state container of Microsoft's Blazor docs, with the persistent component state that .NET 10 adds. Every statement about another library links to its documentation, source or issue tracker, and every statement about Ducky links to the guide that shows it.

The snapshot is as of 2026-11-08: Fluxor 6.11.0 (released 2026-08-03), TimeWarp.State 11.0.3 (its latest stable release, 2025-06-20; from beta.9 the 12.0 betas target .NET 11, and they are not compared), and ASP.NET Core 10.0. Ducky 2.0 is a pre-release: it is not yet published on nuget.org. Fluxor has been on nuget.org since 2020 and has years of production use.

The migration guides take an app from each: [Fluxor](migration/fluxor.md), [TimeWarp.State](migration/timewarp-state.md), [a hand-written state container](migration/state-container.md).

## The matrix

| | Ducky 2.0 | Fluxor 6.11.0 | TimeWarp.State 11.0.3 | Hand-written container + .NET 11 |
|---|---|---|---|---|
| Programming model | Redux: immutable slices, pure reducers, effects; a `SliceStore` for method-style state ([Getting started](guides/core/getting-started.md), [SliceStore](guides/core/slice-store.md)) | Redux/Flux: feature states, reducer methods, effect methods ([tutorials](https://github.com/mrpmorris/Fluxor/tree/6.11.0/Source/Tutorials/02-Blazor)) | one async handler per action, sent through MediatR, mutating a mutable state ([sample](https://github.com/TimeWarpEngineering/timewarp-state/tree/11.0.3/Samples/00-StateActionHandler)) | a service with mutable properties and an `OnChange` event ([docs](https://learn.microsoft.com/en-us/aspnet/core/blazor/state-management/?view=aspnetcore-10.0#in-memory-state-container-service)) |
| Registration | generated at build time: `AddDuckyGenerated_{Assembly}()` ([Getting started](guides/core/getting-started.md#register)) | reflection scan at startup: `ScanAssemblies` ([source](https://github.com/mrpmorris/Fluxor/blob/6.11.0/Source/Lib/Fluxor/DependencyInjection/ServiceCollectionExtensions.cs#L40)) | assembly scan and MediatR registration at startup ([source](https://github.com/TimeWarpEngineering/timewarp-state/blob/11.0.3/Source/TimeWarp.State/Extensions/ServiceCollectionExtensions.AddTimeWarpState.cs#L105-L119)) | `AddScoped` or `AddSingleton` by hand ([docs](https://learn.microsoft.com/en-us/aspnet/core/blazor/state-management/?view=aspnetcore-10.0#in-memory-state-container-service)) |
| Reducers | `On<TAction>` returning the next state; exact action type; a new reference is a change ([Slices and keys](guides/core/slices-and-keys.md#reducers)) | `[ReducerMethod]`, usually static; also matches derived action types ([source](https://github.com/mrpmorris/Fluxor/blob/6.11.0/Source/Lib/Fluxor/DependencyInjection/Wrappers/ReducerWrapper.cs#L12)); a new reference is a change ([source](https://github.com/mrpmorris/Fluxor/blob/6.11.0/Source/Lib/Fluxor/Feature.cs#L95)) | the handler mutates the state; by default (`UseStateTransactionBehavior`, [source](https://github.com/TimeWarpEngineering/timewarp-state/blob/11.0.3/Source/TimeWarp.State/Extensions/TimeWarpStateOptions.cs#L20)) the state is cloned before each action for rollback ([source](https://github.com/TimeWarpEngineering/timewarp-state/blob/11.0.3/Source/TimeWarp.State/Features/CloneState/Pipeline/StateTransactionBehavior.cs#L58-L60)) | methods set properties |
| Effect concurrency and cancellation | per effect: `Merge`, `Switch`, `Exhaust` or `Queue`, per concurrency key; a run token cancelled when superseded ([Effects](guides/core/effects.md#concurrency-policies)) | every matching effect starts for every action; no token, no policy ([source](https://github.com/mrpmorris/Fluxor/blob/6.11.0/Source/Lib/Fluxor/Store.cs#L188-L236)) | the handler gets a `CancellationToken`; `CancelOperations()` cancels all of a state's operations; no policy ([source](https://github.com/TimeWarpEngineering/timewarp-state/blob/11.0.3/Source/TimeWarp.State/State/State.cs#L69-L75)) | your own code |
| Dispatch result | `await DispatchAsync(...)` gives a `DispatchResult` once the action is reduced ([threading contract](threading.md)) | `Dispatch` returns `void` ([source](https://github.com/mrpmorris/Fluxor/blob/6.11.0/Source/Lib/Fluxor/IDispatcher.cs#L16)) | the generated method completes after the handler ([source](https://github.com/TimeWarpEngineering/timewarp-state/blob/11.0.3/Source/TimeWarp.State.SourceGenerator/ActionSetMethodGenerator.cs#L84-L93)) | a method call |
| Failures | `ReducerFailed` and `EffectFailed` actions; a throwing reducer commits nothing ([Effects](guides/core/effects.md#an-effect), [Slices and keys](guides/core/slices-and-keys.md#reducers)) | effect exceptions are raised on `Store.UnhandledException` ([source](https://github.com/mrpmorris/Fluxor/blob/6.11.0/Source/Lib/Fluxor/Store.cs#L221-L236)) | by default the state is restored and an `ExceptionNotification` published, and the caller sees no exception ([source](https://github.com/TimeWarpEngineering/timewarp-state/blob/11.0.3/Source/TimeWarp.State/Features/CloneState/Pipeline/StateTransactionBehavior.cs#L110-L120)) | exceptions reach the caller |
| Prerender and static SSR | the store works in both; `Prerender<T>` seeds the interactive store once the prerender store is idle ([Prerender](guides/blazor/prerender.md), [Static SSR](guides/blazor/static-ssr.md)) | with `StoreInitializer`, the store starts in `OnAfterRenderAsync` ([source](https://github.com/mrpmorris/Fluxor/blob/6.11.0/Source/Lib/Fluxor.Blazor.Web/StoreInitializer.cs#L78-L88)), so it is not initialized during prerender or static SSR unless the app calls `IStore.InitializeAsync()` itself, which breaks Redux DevTools; no release contains the fix ([#547](https://github.com/mrpmorris/Fluxor/issues/547)) | prerendered state is not carried to the interactive render: the `PreRender` persistence method returns `null` with a `// TODO` ([source](https://github.com/TimeWarpEngineering/timewarp-state/blob/11.0.3/Source/TimeWarp.State.Plus/Features/Persistentence/Services/PersistenceService.cs#L35-L36)) | built in: `[PersistentState]` and `RegisterPersistentService` carry values to the interactive render ([docs](https://learn.microsoft.com/en-us/aspnet/core/blazor/state-management/prerendered-state-persistence?view=aspnetcore-10.0#serialize-state-for-services)) |
| Persistence | built in: `localStorage`, `sessionStorage`, or per user in `IDistributedCache`; versions, migrations, expiry ([Persistence](guides/blazor/persistence.md)) | community package Fluxor.Persist 3.1.0, `net8.0` and `net9.0` ([repository](https://github.com/Tailslide/fluxor-persist), [nuget.org](https://www.nuget.org/packages/Fluxor.Persist)) | TimeWarp.State.Plus: `localStorage` or `sessionStorage`, registered by hand ([README](https://github.com/TimeWarpEngineering/timewarp-state/blob/11.0.3/Source/TimeWarp.State.Plus/README.md)) | none; the docs' container "doesn't persist data without further development" ([docs](https://learn.microsoft.com/en-us/aspnet/core/blazor/state-management/?view=aspnetcore-10.0#in-memory-state-container-service)) |
| Multi-tab sync | `SyncAcrossTabs` for `localStorage` slices ([Cross-tab sync](guides/blazor/cross-tab.md)) | not built in (no option in [`FluxorOptions`](https://github.com/mrpmorris/Fluxor/blob/6.11.0/Source/Lib/Fluxor/DependencyInjection/FluxorOptions.cs)) | not built in (no option in [`TimeWarpStateOptions`](https://github.com/TimeWarpEngineering/timewarp-state/blob/11.0.3/Source/TimeWarp.State/Extensions/TimeWarpStateOptions.cs)) | not built in |
| Redux DevTools | built into Ducky.Blazor: `UseDevTools()`, with sanitizers and time travel ([Redux DevTools](guides/blazor/devtools.md)) | separate package Fluxor.Blazor.Web.ReduxDevTools: time travel (jump to state), action filters, optional stack traces ([tutorial](https://github.com/mrpmorris/Fluxor/blob/6.11.0/Source/Tutorials/02-Blazor/02D-ReduxDevToolsTutorial/README.md), [options](https://github.com/mrpmorris/Fluxor/blob/6.11.0/Source/Lib/Fluxor.Blazor.Web.ReduxDevTools/ReduxDevToolsMiddlewareOptions.cs)) | `UseReduxDevTools()` plus two components ([sample](https://github.com/TimeWarpEngineering/timewarp-state/tree/11.0.3/Samples/01-ReduxDevTools)); time travel needs a `Hydrate` override per state ([source](https://github.com/TimeWarpEngineering/timewarp-state/blob/11.0.3/Source/TimeWarp.State/State/State.cs#L46-L47)); removed in [12.0.0-beta.11](https://github.com/TimeWarpEngineering/timewarp-state/blob/v12.0.0-beta.11/documentation/release-notes/release12.0.0-beta.11.md) | none |
| AOT and trimming | `IsAotCompatible`; checked by a Native AOT smoke test and a trimmed WebAssembly test ([SPEC §10](https://github.com/phmatray/Ducky/blob/v2/docs/spec/SPEC.md#10-serialization-and-aot-core-07-eng-08-inv-23-inv-24)) | the reflection scan is not AOT-compatible; building the store by hand is, per its maintainer ([#507](https://github.com/mrpmorris/Fluxor/issues/507)) | reflection: assembly `GetTypes()` scan and MediatR registration ([source](https://github.com/TimeWarpEngineering/timewarp-state/blob/11.0.3/Source/TimeWarp.State/Extensions/ServiceCollectionExtensions.AddTimeWarpState.cs#L105-L119)), reflection cloning; the 12.0 betas build with `IsAotCompatible` from beta.11 ([release notes](https://github.com/TimeWarpEngineering/timewarp-state/blob/v12.0.0-beta.11/documentation/release-notes/release12.0.0-beta.11.md)) | your code; `[PersistentState]` serialization "isn't trimmer safe" without preserving the types ([docs](https://learn.microsoft.com/en-us/aspnet/core/blazor/state-management/prerendered-state-persistence?view=aspnetcore-10.0)) |
| Testing helpers | Ducky.Testing: `SliceTest`, `EffectTest`, `TestStore` with a fake clock ([Testing](guides/core/testing.md)) | no testing package; reducers are static methods, and `Effect<T>.HandleAsync` is public "to make unit testing easier" ([release notes](https://github.com/mrpmorris/Fluxor/blob/6.11.0/Docs/releases.md)) | no testing package; its own tests build a host and send actions ([source](https://github.com/TimeWarpEngineering/timewarp-state/blob/11.0.3/Tests/Client.Integration.Tests/Infrastructure/BaseTest.cs)) | plain classes, tested directly |
| Target frameworks | `net11.0` ([SPEC §3](https://github.com/phmatray/Ducky/blob/v2/docs/spec/SPEC.md#3-packages-and-dependencies)) | `net8.0`, `net9.0`, `net10.0` ([nuget.org](https://www.nuget.org/packages/Fluxor.Blazor.Web/6.11.0)) | `net8.0` ([nuget.org](https://www.nuget.org/packages/TimeWarp.State/11.0.3)) | any; `[PersistentState]` needs .NET 10 ([docs](https://learn.microsoft.com/en-us/aspnet/core/blazor/state-management/prerendered-state-persistence?view=aspnetcore-10.0)) |
| License | Apache-2.0 ([LICENSE](https://github.com/phmatray/Ducky/blob/v2/LICENSE)) | MIT ([nuget.org](https://www.nuget.org/packages/Fluxor.Blazor.Web/6.11.0)) | Unlicense ([nuget.org](https://www.nuget.org/packages/TimeWarp.State/11.0.3)) | n/a |
| Maturity | 2.0 is a pre-release, not on nuget.org; Ducky 1.x: 3,486 downloads of `Ducky` ([nuget.org](https://www.nuget.org/packages/Ducky)) | on nuget.org since 2020; 4,058,068 downloads of `Fluxor.Blazor.Web`; 1,474 GitHub stars ([nuget.org](https://www.nuget.org/packages/Fluxor.Blazor.Web), [GitHub](https://github.com/mrpmorris/Fluxor)) | 39,782 downloads of `TimeWarp.State`, plus 373.0K of the deprecated `Blazor-State` id; 610 GitHub stars ([nuget.org](https://www.nuget.org/packages/TimeWarp.State), [Blazor-State](https://www.nuget.org/packages/Blazor-State), [GitHub](https://github.com/TimeWarpEngineering/timewarp-state)) | Microsoft's documented pattern, part of ASP.NET Core |

Download counts are nuget.org totals on 2026-11-08. They include CI restores and mirrors, so read them as relative indicators, not user counts.

## Where the others are ahead

- **Fluxor** runs on .NET 8, 9 and 10, has been released on nuget.org since 2020, and counts over four million downloads of `Fluxor.Blazor.Web`. Its behaviour is known from years of production use; Ducky 2.0's is not yet.
- **TimeWarp.State** needs fewer types for an async operation: one handler awaits and mutates, where Ducky asks for a reducer and an effect. Its stable line runs on .NET 8.
- **A hand-written container** has no dependency at all, and on .NET 11 its prerendered values reach the interactive render with one attribute and one registration. For a few values shared by a few components, it is the simpler choice.
- **Equal:** Fluxor and Ducky both detect a change by reference, both create one effect instance per store, and both build on the same Redux DevTools extension.

## When not to choose Ducky

- **Your app targets .NET 8, .NET 9 or .NET 10.** Ducky 2.0 targets `net11.0` only. Fluxor supports .NET 8 through .NET 10.
- **You need a released, proven library today.** Ducky 2.0 is a pre-release.
- **You prefer MVVM.** Ducky is a Redux store. View models with `CommunityToolkit.Mvvm` are a different model, not a migration.
- **Your app is small.** A few values shared by a few components need no store: a state container service, or a cascading value, is less code.
- **You rely on packages built for another library**, such as Fluxor.Persist or Fluxor middleware from the community.
