froebel
froebel copied to clipboard
Clone (structuredClone) doesn't work with proxies
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.