'Blazor Web Assembly - Page reload (F5) triggers Program.cs Main method: is it correct?

In my web assembly Blazor application, a page reload (F5 or NavToUri with forceLoad: true) triggers the Program.cs Main method. Is it correct, or am i doing something wrong?

I'm asking this because in my situation this causes the loss of the user access token login data



Solution 1:[1]

My question has been answered in the comments

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 while1