Skip to content

Commit

Permalink
Prevent fetch storms if the UI is already fetching
Browse files Browse the repository at this point in the history
  • Loading branch information
afgomez authored and Alejandro Fernández Gómez committed Nov 10, 2020
1 parent d770bcf commit 7e5c892
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions x-pack/plugins/infra/public/components/log_stream/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ Read more at https://github.com/elastic/kibana/blob/master/src/plugins/kibana_re
return;
}

if (isLoadingMore) {
return;
}

if (pagesBeforeStart < PAGE_THRESHOLD) {
fetchPreviousEntries();
} else if (pagesAfterEnd < PAGE_THRESHOLD) {
Expand Down

0 comments on commit 7e5c892

Please sign in to comment.