Where next
You built a Blazor app whose state lives in one store: slices of immutable records, changed only by reducers, one action at a time; effects for the server, with a concurrency policy each; memoized selectors for derived data; a persisted, versioned basket; and tests that run in a second. Here is where each idea goes further.
See it bigger
- The Ducky Playground is Rubber Duck Supply Co., a bigger version of this shop, running in your browser. Switch on X-ray: it names the Ducky feature behind each part of the page and shows its source. You will recognise the search box on
Switch, the memoized shelf and the persisted basket, next to a checkout onExhaust, order tracking and more. - The finished Duck Shop of this tutorial, with all its tests, is in docs/tutorial/samples.
Go deeper, by topic
- Slices and keys: reducer rules, exact-type matching, how keys are derived and pinned.
- Effects and concurrency policies:
EffectGroup, concurrency keys, pollers andLongRunning. - Selectors: selections,
onChange, selectors with an argument. - SliceStore: a slice with methods,
cart.Add(line)instead of an action, when you prefer that style. - EntityState: collections looked up by id, as the playground's catalogue is.
- Testing with Ducky.Testing: everything
SliceTest,EffectTestandTestStorecheck. - Render modes and the load rule: the same store on Interactive Server, Interactive Auto and static SSR.
- Persistence:
sessionStorage, server storage,MaxAge, waiting for hydration, clearing on sign-out. - Cross-tab sync: what
SyncAcrossTabsdoes in detail. - The threading contract: exactly when an action is reduced, and on which thread.
Watch every action
Redux DevTools shows every action the store reduces, the state after each one, and lets you step back in time. Enable it with one call, UseDevTools(), inside your AddDucky callback, guarded by builder.HostEnvironment.IsDevelopment() so it only runs in development (it turns on whenever it is called), and install the browser extension.
Compare and migrate
- How Ducky compares sets Ducky beside Fluxor, TimeWarp.State and a hand-written state container, including where the others are ahead.
- Coming from Fluxor, TimeWarp.State or a state container service? Each guide maps your app to Ducky, step by step.