Merge pull request #533 from booxood/fix-docs-example

docs: fix "Example: Syncing clients without loading the Y.Doc" code
This commit is contained in:
Kevin Jahns 2023-09-18 19:32:01 +02:00 committed by GitHub
commit b5051e91ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -789,7 +789,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