This is the testing class:
namespace ScopedTest.Data
{
public class TestingClass
{
public static string? Name { get; set; } = "HAHA";
}
}
and here is the class im working with:
@using ScopedTest.Data
@inject TestingClass Name
<PageTitle>Counter</PageTitle>
<h1>Counter</h1>
<input type="text" @bind-value=@Name />
<p> @Name </p>
When I open this webpage on 2 different browsers (chrome and firefox for exmaple) when I change the name in Chrome and then refresh on Firefox the name gets updated on firefox as well and I do not why or how it is doing this, the purpose of this test is to try and only keep the data on the browser without it changing when hitting refresh. any suggestions?