mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-24 04:27:27 +08:00
refactor(infra): remove setimmediate (#7821)
This commit is contained in:
@@ -495,7 +495,8 @@ export class LiveData<T = unknown>
|
|||||||
throw this.poisonedError;
|
throw this.poisonedError;
|
||||||
}
|
}
|
||||||
this.ops$.next('watch');
|
this.ops$.next('watch');
|
||||||
setImmediate(() => {
|
// eslint-disable-next-line @typescript-eslint/no-floating-promises -- never throw
|
||||||
|
Promise.resolve().then(() => {
|
||||||
this.ops$.next('unwatch');
|
this.ops$.next('unwatch');
|
||||||
});
|
});
|
||||||
return this.raw$.value;
|
return this.raw$.value;
|
||||||
|
|||||||
Reference in New Issue
Block a user