From d15a70371fa374db18f43962ca90c481cf187786 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Wed, 30 Jun 2021 09:27:56 +0200 Subject: [PATCH] Chore: adds buffersize to ReplaySubject (#36286) (#36287) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 3999d670cf1184baad25139e08340bba10fd05f2) Co-authored-by: Hugo Häggmark --- .../query/state/DashboardQueryRunner/DashboardQueryRunner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/query/state/DashboardQueryRunner/DashboardQueryRunner.ts b/public/app/features/query/state/DashboardQueryRunner/DashboardQueryRunner.ts index 1de8b6f57fb..31da2b3e68a 100644 --- a/public/app/features/query/state/DashboardQueryRunner/DashboardQueryRunner.ts +++ b/public/app/features/query/state/DashboardQueryRunner/DashboardQueryRunner.ts @@ -39,7 +39,7 @@ class DashboardQueryRunnerImpl implements DashboardQueryRunner { this.cancel = this.cancel.bind(this); this.destroy = this.destroy.bind(this); this.executeRun = this.executeRun.bind(this); - this.results = new ReplaySubject(); + this.results = new ReplaySubject(1); this.runs = new Subject(); this.cancellationStream = new Subject(); this.runsSubscription = this.runs.subscribe((options) => this.executeRun(options));