This project was created to help me learn and remember the state management in a Blazor Application.
State management is a key part of any SPA web application. YOu need to be able to pass state between pages. Simple things like user info, permissions, configurations all need to be maintain on the client side to avoid a lot of repetitive calls.
-
Clone this repository
git clone https://github.com/CodingWithDavid/BlazorStateManagement cd BlazorStateManagement
-
Open in Visual Studio or Visual Code a. With Visual Code you will need to install the C# extensions
-
Press F5
I am using the basic Server side Blazor template and adding state management to the "Counter" page. The sample also shows how to set up state management between components using an event handler