Hiyve Components - v1.0.0
    Preparing search index...

    Return type for the useQASync hook.

    interface UseQASyncResult {
        answerQuestion: (questionId: string, content: string) => void;
        connected: boolean;
        deleteQuestion: (questionId: string) => void;
        pinQuestion: (questionId: string, pinned: boolean) => void;
        postQuestion: (content: string, anonymous?: boolean) => Question | null;
        startSession: () => void;
        toggleOpenForAnswers: (questionId: string, open: boolean) => void;
        toggleVote: (questionId: string) => void;
    }
    Index

    Properties

    answerQuestion: (questionId: string, content: string) => void

    Answer a question (owner or anyone if question is open for answers)

    connected: boolean

    Whether the client is connected

    deleteQuestion: (questionId: string) => void

    Delete a question (owner only)

    pinQuestion: (questionId: string, pinned: boolean) => void

    Pin/unpin a question (owner only)

    postQuestion: (content: string, anonymous?: boolean) => Question | null

    Post a new question

    startSession: () => void

    Start a Q&A session (owner only) - broadcasts to all participants

    toggleOpenForAnswers: (questionId: string, open: boolean) => void

    Toggle whether a question is open for community answers (owner only)

    toggleVote: (questionId: string) => void

    Toggle vote on a question