docs: fix "Example: Syncing clients without loading the Y.Doc" code
This commit is contained in:
parent
5db1eed181
commit
1ce1751432
@ -753,7 +753,7 @@ const diff2 = Y.diffUpdate(currentState2, stateVector1)
|
||||
|
||||
// sync clients
|
||||
currentState1 = Y.mergeUpdates([currentState1, diff2])
|
||||
currentState1 = Y.mergeUpdates([currentState1, diff1])
|
||||
currentState2 = Y.mergeUpdates([currentState2, diff1])
|
||||
```
|
||||
|
||||
#### Obfuscating Updates
|
||||
|
Loading…
x
Reference in New Issue
Block a user