Closed xieyuheng closed 1 year ago
Basically everything that's structural clonable works. that includes array of file handles.
👍
Sorry about this misreport, the problem is about vue reactive
and the use of Proxy
.
Bit of topic
I'm wrong about not being able to store anything that is structural clonable in IndexedDB with globalThis.structuredClone(x)
uh?
Dose anyone else happen to know of anything else that can be stored in IndexedDB that isn't structural cloneable with structuredClone
...Maybe some Crypto class or something?
I think i was right.
@jimmywarting - values in IDB are by definition "any serializable object" which bottoms out at the same place as structuredClone(). Under the hood, IDB effectively does a structuredClone() when you put a record, and another structuredClone() when you get a record. (There's a little extra magic in between to handle key extraction/injection, but that's not relevant here.)
Uhm, i don't think it should be a problem...
Basically everything that's structural clonable works. that includes array of file handles.
I just tried it out and it works OK