Skip to content

Experimental features

Clemens edited this page Aug 20, 2024 · 1 revision

Archive history

Due to current performance limitations in Automerge, the load time of a webstrate with a long history can become very high. It is possible to flatten the history of a webstrate using the following method:

webstrate.archiveHistory()

What happens, is that the Automerge-document representing the content of the webstrates replaced with a shallow copy. The original version is accessible in automerge.rootDoc.meta.archive. The shallow copy will not contain the edit history and is therefore faster to load.

Clone this wiki locally