diff --git a/packages/common/infra/src/livedata/livedata.ts b/packages/common/infra/src/livedata/livedata.ts index 742163ea7f..655515eaf3 100644 --- a/packages/common/infra/src/livedata/livedata.ts +++ b/packages/common/infra/src/livedata/livedata.ts @@ -495,7 +495,8 @@ export class LiveData throw this.poisonedError; } this.ops$.next('watch'); - setImmediate(() => { + // eslint-disable-next-line @typescript-eslint/no-floating-promises -- never throw + Promise.resolve().then(() => { this.ops$.next('unwatch'); }); return this.raw$.value;