YousefED / SyncedStore

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

[Q] how should I map internal objects to SyncedStore proxies? #129

Open rozek opened 3 weeks ago

rozek commented 3 weeks ago

Hi!

I'm currently evaluating "SyncedStore", but ran into a problem:

As I would like to register a single change event handler (i.e., a toplevel "observeDeep") and access the changed object directly, the question arises how I can determine which of my original objects maps to a given change.target

I already tried to use the UUID of my original object, but setting a property on an array raises an exception in "array.ts":

array.ts:173 Uncaught Error
    at Object.set (array.ts:173:15)
    at VM30368 about:srcdoc:11:48