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

    Options for the useQASync hook.

    interface UseQASyncOptions {
        client: unknown;
        isOwner: boolean;
        localUserId: string;
        localUserName: string;
        onNewQuestion?: (question: Question) => void;
        onSessionStarted?: () => void;
        onStateUpdate: (questions: Question[]) => void;
        questionsRef: RefObject<Map<string, Question>>;
    }
    Index

    Properties

    client: unknown

    Hiyve client instance

    isOwner: boolean

    Whether the current user is the room owner

    localUserId: string

    Local user ID

    localUserName: string

    Local user display name

    onNewQuestion?: (question: Question) => void

    Callback when a new question arrives from remote

    onSessionStarted?: () => void

    Callback when a Q&A session is started by the owner

    onStateUpdate: (questions: Question[]) => void

    Callback when state is updated from remote

    questionsRef: RefObject<Map<string, Question>>

    Ref to the questions map for state sync responses