From 0507a36964026026584c794fe94d6d7350d48cec Mon Sep 17 00:00:00 2001 From: Christiaan Bloemendaal Date: Mon, 1 Jan 2024 16:44:11 +0100 Subject: [PATCH] fix: early out if already refreshing --- src/Mangarr.Frontend/Pages/Activity/Content.razor.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Mangarr.Frontend/Pages/Activity/Content.razor.cs b/src/Mangarr.Frontend/Pages/Activity/Content.razor.cs index 661e3b0..a0a78b1 100644 --- a/src/Mangarr.Frontend/Pages/Activity/Content.razor.cs +++ b/src/Mangarr.Frontend/Pages/Activity/Content.razor.cs @@ -34,6 +34,11 @@ protected override void OnInitialized() private async void RefreshAsync() { + if (_isRefreshing) + { + return; + } + _isRefreshing = true; await InvokeAsync(StateHasChanged);