7

Managing Application State

While a user is using an app, there is a high probability that the user will close the browser by mistake, move to another app, or even expect the app to be in the same flow after refreshing the page or opening the link in another tab.

Managing state is about keeping your app and the user experience consistent, bulletproof, and enjoyable. It’s about keeping track of what the user was doing, even if something unexpected happens.

This chapter teaches you about state management, and the various ways to store and transfer this state, either by using local storage, the URL, or in-memory solutions.

While learning about state management techniques, we will apply them directly to our BooksStore project to preserve the state ...

Get Mastering Blazor WebAssembly now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.