Skip to content

Optimize clone function #3

@abelhancock

Description

@abelhancock

Issue:
Currently using the simple one-liner clone function from the figma documentation. It is inefficient, and I suspect it is causing the plugin to run slowly on pages with many frames.

function clone(val) {
return JSON.parse(JSON.stringify(val))
}

Expected Behavior:
Plugin runs quickly on pages with any number of frames.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions