@* Source: https://whuysentruit.medium.com/blazor-wasm-pwa-adding-a-new-update-available-notification-d9f65c4ad13 *@
@inject IJSRuntime _jsRuntime
@if (_newVersionAvailable)
{
}
@code {
private bool _newVersionAvailable = false;
protected override async Task OnInitializedAsync()
{
await RegisterForUpdateAvailableNotification();
}
private async Task RegisterForUpdateAvailableNotification()
{
await _jsRuntime.InvokeAsync