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 came across this in our syncing, but minimized it down to the below example. The behavior I'm seeing is that if you save a proxy to a variable, that proxy will not update when the document updates.
it.only('updates a saved proxy',async()=>{constdoc=newY.Doc()constshape={data: {}asRecord<string,any>}conststore=syncedStore(shape,doc)store.data.someObj={}store.data.someObj.hello='world'constoriginalObj=store.data.someObjconstmp=newY.Map()mp.set('hello','world')doc.getMap('data').set('someObj',mp)// this passesexpect(store.data.someObj).toEqual({hello: 'world'})// this failsexpect(originalObj.hello).toEqual('world')})``
The text was updated successfully, but these errors were encountered:
I came across this in our syncing, but minimized it down to the below example. The behavior I'm seeing is that if you save a proxy to a variable, that proxy will not update when the document updates.
The text was updated successfully, but these errors were encountered: