Skip to content

Commit e2d8bc6

Browse files
committed
Avoids gate to avoid potential dead locks
1 parent 27a45b9 commit e2d8bc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/nodes/abstract/viewNode.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ import type {
2727
LocalWorkspace,
2828
LocalWorkspaceRepositoryDescriptor,
2929
} from '../../../plus/workspaces/models/localWorkspace';
30-
import { gate } from '../../../system/decorators/gate';
3130
import { debug, logName } from '../../../system/decorators/log';
31+
import { sequentialize } from '../../../system/decorators/sequentialize';
3232
import { is as isA } from '../../../system/function';
3333
import { getLoggableName } from '../../../system/logger';
3434
import type { View } from '../../viewBase';
@@ -323,7 +323,7 @@ export abstract class ViewNode<
323323

324324
refresh?(reset?: boolean): void | { cancel: boolean } | Promise<void | { cancel: boolean }>;
325325

326-
@gate()
326+
@sequentialize()
327327
@debug()
328328
triggerChange(reset: boolean = false, force: boolean = false, avoidSelf?: ViewNode): Promise<void> {
329329
if (this._disposed) return Promise.resolve();

0 commit comments

Comments
 (0)