Skip to content

Commit

Permalink
Add log to snapshot handler (#225)
Browse files Browse the repository at this point in the history
  • Loading branch information
devleejb authored Jul 2, 2024
1 parent d663741 commit c1e51a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend/src/utils/yorkie/yorkieSync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class YorkieSyncPluginValue implements cmView.PluginValue {

// The text is replaced to snapshot and must be re-synced.
const text = this._doc.getRoot().content;
console.log("YorkieSyncPlugin: Replacing the text to snapshot: ", text.toString());
view.dispatch({
changes: { from: 0, to: view.state.doc.length, insert: text.toString() },
annotations: [cmState.Transaction.remote.of(true)],
Expand Down

0 comments on commit c1e51a6

Please sign in to comment.