5
Managing Application State
In this chapter, we will explore the crucial aspect of maintaining and manipulating the state of a Blazor application. An application state is the runtime data that dictates the behavior and appearance of an application, reflecting user interactions and decisions.
We will walk through various strategies for state management, from encoding state in the URL for bookmarkable states and easy sharing to implementing in-memory state containers for rapid access. You’ll learn how to inject application state as a service, allowing centralized state management across different components, and how to persist state to ensure data continuity across sessions. Furthermore, we will explore techniques to resolve persisted state upon ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access