From cdaef477d3e2042697c38bc0ca942ccaa6dde439 Mon Sep 17 00:00:00 2001 From: Andrew Simachev Date: Sat, 12 Apr 2025 19:32:31 +0200 Subject: [PATCH] refactoring of deps loading --- src/ts/component/block/chat.tsx | 1 + src/ts/component/{index.tsx => index.ts} | 0 src/ts/interface/common.ts | 4 ++++ src/ts/lib/util/data.ts | 2 +- 4 files changed, 6 insertions(+), 1 deletion(-) rename src/ts/component/{index.tsx => index.ts} (100%) diff --git a/src/ts/component/block/chat.tsx b/src/ts/component/block/chat.tsx index d92d2080c0..39c38199c3 100644 --- a/src/ts/component/block/chat.tsx +++ b/src/ts/component/block/chat.tsx @@ -390,6 +390,7 @@ const BlockChat = observer(class BlockChat extends React.Component { objects.forEach(it => S.Detail.update(rootId, { id: it.id, details: it }, false)); + this.forceUpdate(); this.refForm?.forceUpdate(); if (callBack) { diff --git a/src/ts/component/index.tsx b/src/ts/component/index.ts similarity index 100% rename from src/ts/component/index.tsx rename to src/ts/component/index.ts diff --git a/src/ts/interface/common.ts b/src/ts/interface/common.ts index 515821a3b5..d032b1e3fd 100644 --- a/src/ts/interface/common.ts +++ b/src/ts/interface/common.ts @@ -340,6 +340,10 @@ export interface SearchSubscribeParam { noDeps: boolean; }; +export interface SearchIdsParam extends SearchSubscribeParam { + ids: string[]; +}; + export enum SortId { All = 'all', Orphan = 'orphan', diff --git a/src/ts/lib/util/data.ts b/src/ts/lib/util/data.ts index 7c5f5326bf..fdd085e950 100644 --- a/src/ts/lib/util/data.ts +++ b/src/ts/lib/util/data.ts @@ -900,7 +900,7 @@ class UtilData { }); }; - subscribeIds (param: any, callBack?: (message: any) => void) { + subscribeIds (param: Partial, callBack?: (message: any) => void) { const { space } = S.Common; param = Object.assign({