protected override async ValueTask DisposeAsync(bool disposing) { if (_disposed) { return; } if (disposing) { AnimatedNavigationService.DeregisterNavigationComponent(this); } _disposed = true; await base.DisposeAsync(disposing); }
protected override void Dispose(bool disposing) { if (_disposed) { return; } if (disposing) { AnimatedNavigationService.DeregisterNavigationComponent(this); } _disposed = true; base.Dispose(disposing); }
// Would like to use <inheritdoc/> however DocFX cannot resolve to references outside Material.Blazor protected override async Task OnInitializedAsync() { await base.OnInitializedAsync(); AnimatedNavigationService.RegisterNavigationComponent(this); }
// Would like to use <inheritdoc/> however DocFX cannot resolve to references outside Material.Blazor protected override void OnInitialized() { base.OnInitialized(); AnimatedNavigationService.RegisterNavigationComponent(this); }