Dotloom TypeScript API
    Preparing search index...

    Class Autosave

    Saves the engine's document to a StorageAdapter shortly after each commit, and offers recovery after a crash or a closed tab.

    Index
    state: Store<AutosaveState> = ...
    • Call after the user saved the document elsewhere (e.g. downloaded the file).

      Returns Promise<void>

    • Load the autosaved document into the engine. Returns the stored view state.

      Returns Promise<unknown>