I created a simple Blazor Server Application: The class "UserSettings.cs" is injected in the components.
public class UserSettings
{
public Guid Id{ get; } = Guid.NewGuid();
}
services.AddScoped<UserSettings>();
I display the Id inside the UserSetting Service in different Components. After switching the component, the Id stays the same, but when i refresh the page, it changes. Why does the Service initialized again when refreshing the page?