I have a piece of code in my plugin that extracts all interactions from a document.
I am using ‘interactions.allInteractions’ to get a list of interactions I can iterate over.
It is working as expected, until I add a component to my an artboard and add an interaction to it. A basic simple interaction like tap and gotoartboard is enough to make it break.
Simplest case is to spin up simple plugin template, and add console.log(interactions.allInteractions). That will make the plugin unresponsive, if a component with an interaction is added.
Specifically; I loop this array, but as soon as a I access an item eg. interactions.allInteractions and that item is an interaction on a component, the code just freezes. Accessing other elements that is not an interaction on a component works with no freezing.
EDIT: It appears that this is also a problem when accessing Artboard.incomingInteractions and a component links to that artboard. Also if the component is in the library only and not in the document.
Hope for a quick solution.