Skip to main content
Question

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

  • February 27, 2024
  • 3 replies
  • 199 views

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

This topic has been closed for replies.

3 replies

tank666
  • February 28, 2024

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


  • Author
  • February 28, 2024


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.


tank666
  • February 28, 2024

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?