Skip to content

Deep copies should consider structuredClone #182

Description

@joshua-dean

A few spots use JSON.parse(JSON.stringify(... as a "deep clone".
A fairly recent addition is window.structuredClone(..., which is probably better practice. Some things don't work with it, so there's some testing to be done before switching to it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions