platform-bible-react
    Preparing search index...

    Type Alias CommentDraft

    A comment the user has typed but not committed — an unsent reply, an unsaved edit to an existing comment, or both at once (the reply compose box stays visible while editing an existing comment whenever it already has content). Held by the consumer rather than by the thread component, so it survives the component unmounting (a filter change does that routinely).

    type CommentDraft = {
        assignedUser?: string;
        commentEdits?: Readonly<Record<string, SerializedEditorState>>;
        editorState?: SerializedEditorState;
    }
    Index

    Properties

    assignedUser?: string

    Pending assignee, or undefined when none has been chosen.

    commentEdits?: Readonly<Record<string, SerializedEditorState>>

    Unsaved edits to existing comments in this thread, keyed by comment id. A thread can hold an unsent reply and an in-progress edit at the same time, so these are tracked separately rather than sharing one editor state.

    editorState?: SerializedEditorState

    Serialized contents of the unsent reply, or undefined when nothing has been typed.