In Blazor ServerSide Asp.net core 3.0 Preview 6 the UI does not refresh. I have altered the counter.razor as an example. If you click the buttons "Set counter to ..." the counter is not refreshed. When you click the "Click me" button (is without a parameter) the UI is refreshed and 1 is added to the counter previous clicked.
The buttons seems to work, but the UI is not refreshed.
@page "/counter" <h1>Counter</h1> <p>Current count: @currentCount</p> <br /> <p> <button class="btn btn-primary" @onclick="@IncrementCount">Click me</button> </p> @for (int i = 0; i < 5; i++) { var a = i; <p><button class="btn btn-primary" onclick="@(() => test(a))">Set counter to @a</button></p> } @functions { int currentCount = 0; protected void IncrementCount() { currentCount++; } void test(int i) { currentCount = i; } } Any suggestions how to fix this is or is it a bug in Blazor?
@onclickvsonclick?@onclick(Click me) andonclick(Set counter) on purpose?