Fray Electron
    Preparing search index...

    Function applyRestored

    • Applies an Engine history result only if it still matches the revision shown when requested.

      Parameters

      • state: ProjectState

        Project state to update.

      • restored: {
            changed: boolean;
            domain: string;
            fromRevision: number;
            payload: string;
            revision: number;
        }

        Engine restoration metadata and serialized payload.

      • parse: (json: string) => WorkspaceDocument

        Workspace-document parser for the payload.

      Returns WorkspaceDocument | null

      Parsed document to display, or null for a no-op, wrong domain, or stale response.

      Clears pending state and may update the in-memory document and revision.