YousefED / SyncedStore

SyncedStore CRDT is an easy-to-use library for building live, collaborative applications that sync automatically.
https://syncedstore.org
MIT License
1.74k stars 53 forks source link

array is not boxed before yjs sync but returns as boxed after sync #14

Closed rhaenni closed 3 years ago

rhaenni commented 3 years ago

thanks for this library, been playing with it but stumbled upon an issue when trying to nest an array inside a top level map, when I set the array it appears to be not-boxed (e.g. I can get crdt.myarray.length) but as soon as it gets synced back again from yjs it returns as boxed (crdt.myarray.length doesnt work anymore and instead need to use crdt.myarray.value.length)

is this expected?