YousefED / SyncedStore

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

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

Open rozek opened 5 months ago

rozek commented 5 months 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