How is Blazor UI notified when the property value is changed?
Blazor notifies the UI changes automatically whenever the bound property is changed in a button click, input text, dropdown, etc.Blazor triggers the StateHasChanged() method to notify the change. However, there are some exceptional cases where the user has to manually call the StateHasChanged() method to notify that the UI has been updated. By calling the StateHasChanged(), Blazor can manually be notified when to rerender its UI. This method will tell Blazor when to refresh the UI. In the above example, when the button is clicked, the UI will refresh for every count down of the timer since StateHasChanged method has been called to refresh the UI.
How can I check if my browser is supported to run the Blazor WebAssembly application?
The Blazor WebAssembly support for browsers and their versions can be checked from the website mentioned in this link.
Will the browser download the Blazor WebAssembly whenever the page is loaded?
The browser downloads the Blazor application, its dependencies, and the .NET runtime in the initial load itself and the application will run directly on the Browser UI thread. Note: The dlls will load only at initial rendering and then it will be cached in the local browser.
How to delay a task in Blazor without blocking the UI?
You can delay a task in Blazor by using the Task.Delay() method where the time set for the task to be delayed before proceeding to the next.
Does StateHasChanged rerender all the components or only a particular component?
When StateHasChanged is called, it runs change detection on the current component and its descendants. Blazor is clever enough to rerender the components that have changes. In the above example, only the first list item will be re-rendered.