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:
parent
ef7b111eab
commit
cdaef477d3
4 changed files with 6 additions and 1 deletions
|
@ -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) {
|
||||
|
|
|
@ -340,6 +340,10 @@ export interface SearchSubscribeParam {
|
|||
noDeps: boolean;
|
||||
};
|
||||
|
||||
export interface SearchIdsParam extends SearchSubscribeParam {
|
||||
ids: string[];
|
||||
};
|
||||
|
||||
export enum SortId {
|
||||
All = 'all',
|
||||
Orphan = 'orphan',
|
||||
|
|
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue