Solid Accord
    Preparing search index...

    Type Alias SaveButtonWork

    SaveButtonWork: (
        | { status: "none" }
        | { status: "saving-locally" }
        | { status: "saved-locally" }
        | { status: "saving-to-pod" }
        | { status: "saved-to-pod" }
        | { status: "logging-in" }
        | SaveButtonFailure
    ) & { kept: boolean }

    Where the work is: where its last save got to, or none if there's nothing saved; and whether it's kept, so leaving the page loses nothing, as the client says.

    Type Declaration

    • { status: "none" }
    • { status: "saving-locally" }
    • { status: "saved-locally" }
    • { status: "saving-to-pod" }
    • { status: "saved-to-pod" }
    • { status: "logging-in" }
    • SaveButtonFailure
    • kept: boolean

      Whether the work is safe, so the button stops saying it has changed since it was saved, until showUnsaved.