这是indexloc提供的服务,不要输入任何密码
Skip to content

Clone (structuredClone) doesn't work with proxies #19

@minht11

Description

@minht11

A lot of frameworks use Proxies for their reactivity, Vue included, but that makes it impossible to use structuredClone.

Vue team explicitely suggests to use clone functions, but this library clone function uses structured clone if available, which breaks thing when proxies are involved, unless of course you use browser which doesn't support structuredClone, then things work correctly.

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