mirror of
https://github.com/yjs/yjs.git
synced 2026-08-29 10:09:05 +02:00
bump lib0
This commit is contained in:
@@ -134,7 +134,9 @@ export const testBasics = _tc => {
|
||||
// define a change: insert textual content and an object
|
||||
const childChange = delta.create().insert('hello').insert([{ my: 'object' }]).done()
|
||||
// merge changes
|
||||
const mergedChanges = delta.create(delta.$deltaAny).apply(attrChange).apply(childChange).done()
|
||||
const mergedChanges = delta.create(delta.$deltaAny)
|
||||
mergedChanges.apply(attrChange)
|
||||
mergedChanges.apply(childChange).done()
|
||||
console.log('merged changes: ', mergedChanges.toJSON())
|
||||
ytype.applyDelta(mergedChanges)
|
||||
// the observed change should equal the applied change
|
||||
|
||||
Reference in New Issue
Block a user