Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pvh committed Jan 31, 2025
1 parent 1e4ee1f commit 6d5d5e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/automerge-repo/src/DocHandle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ export class DocHandle<T> extends EventEmitter<DocHandleEvents<T>> {
return { doc: A.init() }
}),
onUnload: assign(() => {
// TODO
return { doc: A.init() }
}),
},
Expand Down Expand Up @@ -316,6 +315,9 @@ export class DocHandle<T> extends EventEmitter<DocHandleEvents<T>> {
*
* @deprecated */
docSync() {
console.warn(
"docSync is deprecated. Use doc() instead. This function will be removed as part of the 2.0 release."
)
return this.doc()
}

Expand Down

0 comments on commit 6d5d5e5

Please sign in to comment.