Is it possible to retrieve ‘COMPONENT’ or ‘COMPONENT_SET’ nodes using a key from InstanceSwapPreferredValue?
declare type InstanceSwapPreferredValue = {
type: 'COMPONENT' | 'COMPONENT_SET'
key: string
}
I noticed the function importComponentByKeyAsync(key: string): Promise<ComponentNode>
, but I believe it might not be the right approach for my goal.
I’d like to render a list of these components (their instances) if possible. It would be nice to have something fast-working.
Thank you in advance for your help!