Skip to content

uwer62/ScopesBlazorApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repro is built using the .NET 8 Blazor WebApp sample.

I have added a second counter page that resides on the server and uses a scoped service to store the current value of the counter.

If one opens the Server Counter Page and clicks several times the counter increments. Switching to the Home Page and back keeps the counter.

Now Click on the Counter page. This one resides in the WebAssembly. In the debugger outoput window one can see that after a short while the circuit of the Blazor app is closed. If one return to the Server Counter Page after that, the counter is reset and starts at 0 again

About

Exmaple of Server-Scoped services reset by components in WebAssemblies

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors