Skip to content

@graphty/graphty-element / index / AutosaveAvailable

Interface: AutosaveAvailable ​

Defined in: graphty-element/src/autosave/types.ts:248

An entry that was not restored automatically, and why.

Properties ​

entry ​

readonly entry: AutosaveEntry

Defined in: graphty-element/src/autosave/types.ts:250

The entry.


problem ​

readonly problem: CodedFact<string> | null

Defined in: graphty-element/src/autosave/types.ts:259

Why the restore failed, for "restore-failed"; otherwise null.


reason ​

readonly reason: "page-data-changed" | "held-by-other-tab" | "restore-failed" | "manual"

Defined in: graphty-element/src/autosave/types.ts:257

"page-data-changed": the page loaded different data, which replaced the restored work. "held-by-other-tab": another tab is writing it. "restore-failed": it could not be read, was written by newer code, or its restore did not finish twice (problem says which). "manual": automatic restore is off.