Summary
In this chapter, we learned how we can handle state in our application and how we can use local storage to store data, both encrypted and not. We looked at different ways of doing that, and we also made sure to include SignalR to be able to use real-time communication with the server.
Almost all applications need to save data in some form. Perhaps it can be settings or preferences. The things we covered in the chapter are the most common ones, but we should also know that there are many open-source projects we can use to persist state. I personally prefer the components to load state from a database when needed be self-contained, and not have to rely on state coming or being somewhere else. This approach has served me well in the past.
In the next chapter, we will take a look at debugging. Hopefully, you haven’t needed to know how to debug yet!