Skip to content

Commit

Permalink
feat: allow component metadata storage (#578)
Browse files Browse the repository at this point in the history
# Conflicts:
#	packages/core/src/interfaces/nodes.ts
#	packages/core/src/utils/createNode.ts
  • Loading branch information
Traveller23 authored and prevwong committed May 13, 2024
1 parent be56c8e commit 1a3567c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/store/query/NodeQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ export class NodeQuery {
return this.node.custom;
}

get info() {
return this.getConfig().info;
}

getState() {
return this.node;
}
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/utils/resolveNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const getResolverConfig = (type: string, resolver: Resolver) => {
related: {},
props: {},
custom: {},
info: {},
isCanvas: false,
};

Expand Down

0 comments on commit 1a3567c

Please sign in to comment.