From b3a67b9d6cdc6be0726a91aceaf56a38716c7097 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Fern=C3=A1ndez=20Haro?= Date: Tue, 11 Oct 2022 09:52:37 +0200 Subject: [PATCH] Licensing: Move `shareReplay` to the bottom (#140763) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- x-pack/plugins/licensing/common/license_update.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugins/licensing/common/license_update.ts b/x-pack/plugins/licensing/common/license_update.ts index b674f4a066ce3..b344d8ce2d16a 100644 --- a/x-pack/plugins/licensing/common/license_update.ts +++ b/x-pack/plugins/licensing/common/license_update.ts @@ -39,11 +39,11 @@ export function createLicenseUpdate( const startWithArgs = initialValues ? [undefined, initialValues] : [undefined]; const license$: Observable = fetched$.pipe( - shareReplay(1), startWith(...startWithArgs), pairwise(), filter(([previous, next]) => hasLicenseInfoChanged(previous, next!)), - map(([, next]) => next!) + map(([, next]) => next!), + shareReplay(1) ); // start periodic license fetch right away