Skip to content

Commit

Permalink
Merge pull request #533 from booxood/fix-docs-example
Browse files Browse the repository at this point in the history
docs: fix "Example: Syncing clients without loading the Y.Doc" code
  • Loading branch information
dmonad committed Sep 18, 2023
2 parents 2fe8907 + 1ce1751 commit b5051e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -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
Expand Down

0 comments on commit b5051e9

Please sign in to comment.