automerge/automerge-repo

repo.clone error message suggests using "handle.waitForReady", which doesn't exist

Closed this issue · 1 comments

See here:

clone<T>(clonedHandle: DocHandle<T>) {
if (!clonedHandle.isReady()) {
throw new Error(
`Cloned handle is not yet in ready state.
(Try await handle.waitForReady() first.)`
)
}

I'm not sure what the preferred alternative is.

pvh commented

whenReady(). fixed and will go in the next release.