Skip to content

Better cloning for td-builder.service.ts #58

@relu91

Description

@relu91

As introduced by #52, the td-builder.service.ts now use the usual trick of JSON.stringify and parse to clone the TD model and generate a valid Thing Description. Is there a better way to achieve this? Is this really performance critical?

Tracking

// FIXME: Get rid of this workaround.
const clonedModel = JSON.parse(JSON.stringify(model));

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions