~/talk

State management in Blazor

Talkat NDC Porto 2022 · 2022-04-25..04-29· [frontend-architecture]
slides:none on file

Demos compare four concrete approaches: a root CascadingParameter component that keeps a boolean and preserves toggles across pages while Blazor only re-renders affected components (timestamps show selective renders); a DI-backed state object registered as scoped state service with explicit change events and IDisposable wiring; an MVVM-style view model injected via DI to centralize logic; and a full Flux implementation using the Fluxor + Redux DevTools pipeline (immutable record state, actions, reducers, effects, dispatcher) that enables time‑travel debugging but adds notable boilerplate and memory/complexity tradeoffs.

AI-written summary · about

  1. 0:00Start
  2. 0:38Why Would We Use State Management
  3. 3:43What Can You Do with State Management
  4. 5:48Cascading State Parameter
  5. 6:32Cascading Element
  6. 14:21Menu Toggler Control
  7. 16:44A State Machine What Is the State Machine
  8. 19:40Dependency Injection
  9. 26:03Mvvm Pattern
  10. 27:05The View Model
  11. 34:57Mvvm
  12. 36:47Flux Pattern
  13. 42:29Override the Get Initial State
  14. 50:50Fetch Data
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.