You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.