mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-03 06:03:21 +03:00
refactor(infra): remove setimmediate (#7821)
This commit is contained in:
parent
ccf225c8f9
commit
1db6b9fe3b
@ -495,7 +495,8 @@ export class LiveData<T = unknown>
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user