From cbe6b80f5fb3ffcdf031ce1f50c69497df321e03 Mon Sep 17 00:00:00 2001 From: Tobias Ortmayr Date: Tue, 12 Nov 2024 17:10:16 +0100 Subject: [PATCH] Fix MeasurementNotificationService binding (#14439) Ensure that the MeasurementNotificationService identifer is bound in singleton scope. Otherwise it can only be injected once --- packages/metrics/src/browser/metrics-frontend-module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/metrics/src/browser/metrics-frontend-module.ts b/packages/metrics/src/browser/metrics-frontend-module.ts index 453b9ead52dad..3da5a6519d854 100644 --- a/packages/metrics/src/browser/metrics-frontend-module.ts +++ b/packages/metrics/src/browser/metrics-frontend-module.ts @@ -24,5 +24,5 @@ export default new ContainerModule(bind => { bind(MeasurementNotificationService).toDynamicValue(ctx => { const connection = ctx.container.get(WebSocketConnectionProvider); return connection.createProxy(measurementNotificationServicePath); - }); + }).inSingletonScope(); });