Can the state of the Counter in the example Blazor project be preserved between page switches?
问题 In the default example project for both server-side Blazor and WebAssembly Blazor projects, the Counter example resets to 0 every time you move between the pages. However, on the ASP.NET React example project, the Counter does not reset between page switches. Is there a way for a component like the Counter to preserve state between page navigation in Blazor (at least for the WebAssembly project that isn't making any server calls)? 回答1: It looks like this exact scenario is discussed in https:/