Skip to content

Commit

Permalink
fix: early out if already refreshing
Browse files Browse the repository at this point in the history
  • Loading branch information
Thundernerd committed Jan 1, 2024
1 parent 56e36e2 commit 0507a36
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Mangarr.Frontend/Pages/Activity/Content.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ protected override void OnInitialized()

private async void RefreshAsync()
{
if (_isRefreshing)
{
return;
}

_isRefreshing = true;
await InvokeAsync(StateHasChanged);

Expand Down

0 comments on commit 0507a36

Please sign in to comment.