You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm just looking tough the code and looking for anything i can help contribute with, i know nothing about how the internal core works or if it is even viable.
but i see code like this with a custom clone function:
One suggestion is to use the available structuredClone whenever it exist or not. that way your own fn can be GC and will instead use the native one, that probably is also much faster? haven't bench tested it...
so my suggestion is to do something along the lines of:
the native structuredClone can clone more stuff, i'm not just sure yet what you are cloning but basically everything that can be stored in IndexedDB can be cloned deeply. it will include things such as date, regex, file, blobs, file handles and more.
Importance
nice to have
The text was updated successfully, but these errors were encountered:
Describe the problem
not a actual problem...
Describe the proposed solution
I'm just looking tough the code and looking for anything i can help contribute with, i know nothing about how the internal core works or if it is even viable.
but i see code like this with a custom clone function:
svelte/packages/svelte/src/compiler/utils/clone.js
Line 6 in 5439714
One suggestion is to use the available structuredClone whenever it exist or not. that way your own fn can be GC and will instead use the native one, that probably is also much faster? haven't bench tested it...
so my suggestion is to do something along the lines of:
Alternatives considered
the native structuredClone can clone more stuff, i'm not just sure yet what you are cloning but basically everything that can be stored in IndexedDB can be cloned deeply. it will include things such as date, regex, file, blobs, file handles and more.
Importance
nice to have
The text was updated successfully, but these errors were encountered: