1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00

refactoring of deps loading

This commit is contained in:
Andrew Simachev 2025-04-12 19:32:31 +02:00
parent ef7b111eab
commit cdaef477d3
No known key found for this signature in database
GPG key ID: 1DFE44B21443F0EF
4 changed files with 6 additions and 1 deletions

View file

@ -390,6 +390,7 @@ const BlockChat = observer(class BlockChat extends React.Component<I.BlockCompon
U.Object.getByIds(ids, { keys: U.Data.chatRelationKeys() }, (objects) => {
objects.forEach(it => S.Detail.update(rootId, { id: it.id, details: it }, false));
this.forceUpdate();
this.refForm?.forceUpdate();
if (callBack) {

View file

@ -340,6 +340,10 @@ export interface SearchSubscribeParam {
noDeps: boolean;
};
export interface SearchIdsParam extends SearchSubscribeParam {
ids: string[];
};
export enum SortId {
All = 'all',
Orphan = 'orphan',

View file

@ -900,7 +900,7 @@ class UtilData {
});
};
subscribeIds (param: any, callBack?: (message: any) => void) {
subscribeIds (param: Partial<I.SearchIdsParam>, callBack?: (message: any) => void) {
const { space } = S.Common;
param = Object.assign({