~/talk

State Management in Blazor Apps

Talkat .NET Conf: Focus on Blazor 2020 · on Tuesday, 2020-01-14· [frontend-architecture]
slides:none on file

Compares Blazor WebAssembly (state in browser memory lost on refresh) and Server Blazor (state kept in server circuits but lost if server restarts), and shows three concrete solutions that work: a service-registered singleton for in-app state (counter demo), browser caching via localStorage JSON serialization with a StorageHelper component and JS interop, and server-side persistence via an API (demo uses an in-memory dictionary). Includes a sharable Razor class library, MVVM property-change hooks, and links to the GitHub repo and Blazor State package.

AI-written summary · about

  1. 0:00Introduction to Blazor State
  2. 1:08State management challenges
  3. 4:13WebAssembly vs server state
  4. 5:55Handling server-side state
  5. 7:56Architecting shared solutions
  6. 12:07State via service registration
  7. 13:48Implementing a counter service
  8. 16:56Browser storage options
  9. 18:22Using local storage in Blazor
  10. 22:04Creating a storage helper
  11. 24:52Optimizing state updates
  12. 29:49Security considerations
  13. 30:50Server-side persistence
  14. 35:16Summary of state approaches
  15. 37:48Q&A session
~/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.