Docs
Tutorial
Time Travel

How to Use Time Travel in Loro

In Loro, you can call doc.checkout(frontiers) to jump to the version specified by the frontiers(Learn more about frontiers).

Note that using doc.checkout(frontiers) to jump to a specific version places the document in a detached state, preventing further edits. To learn more, see Attached/Detached Status. To continue editing, reattach the document to the latest version using doc.attach(). This design is temporary and will be phased out once we have a more refined version control API in place.

Below is an example demonstrating Time Travel functionality.