froebel icon indicating copy to clipboard operation
froebel copied to clipboard

Clone (structuredClone) doesn't work with proxies

Open minht11 opened this issue 1 year ago • 0 comments

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.

minht11 avatar Aug 18 '23 06:08 minht11