Is instance.mainComponent.key the same as the component.key

Hello.

I am able to get the main component key of an instance, but when I get the component key (of the main component from the library). the component key is returning a different value.

I’m trying to compare the instance with the library component key to see if they match.

ex:
(InstanceNode).mainComponent.key
vs
(ComponentNode).key

The key must be the same. Could you share details like videos or file links where you see different keys for the same component?


The above screen shot is from a file that uses the component.


the above is from the library where the component is.

the component is part of a component set.

Sorry, but from these screenshots all I can say is that these are two different components.

Are you sure you selected the correct component in the library file?