3

Managing State – Part 1

In this chapter, we will start looking at managing state. There is also a continuation of this chapter in Chapter 11, Managing State – Part 2.

There are many different ways of managing state or persisting data. As soon as we leave a component, the state is gone. If we click the counter button from the sample pages, see the counter count up and then navigate away, we don’t know how many times we’ll need to click the counter button and have to start over. You can’t imagine how many times I have clicked that counter button over the years. It is such a simple yet powerful demo of Blazor and was a part of Steve’s original demo back in 2017.

To get started quickly, I have split this chapter in two. In this chapter, we are ...

Get Web Development with Blazor - Third Edition 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.