Skip to content

Circular dependency problem #79

@gavinmcfarland

Description

@gavinmcfarland

I'm getting an error when using the clone() helper. I believe it's because of a circular dependency problem, but that's just a hunch.

When I run clone(figma.createFrame()) I now get the following error:

RangeError: Maximum call stack size exceeded
<ref *1> LayoutMixinStub {
      type: 'FRAME',
      children: [],
      parent: ChildrenMixinStub {
        type: 'PAGE',
        children: [ [Circular *1] ],
        parent: ChildrenMixinStub { type: 'DOCUMENT', children: [Array] }
      }
    } []

Could it by trying to loop through the parent, which then loops through the children and then through the parent again?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions