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

    Interface UseQAPersistenceResult

    Return type for the useQAPersistence hook.

    interface UseQAPersistenceResult {
        clearError: () => void;
        error: string | null;
        fileId: string | null;
        hasUnsavedChanges: boolean;
        isSaving: boolean;
        markUnsaved: () => void;
        save: (questions?: Question[]) => Promise<void>;
    }
    Index

    Properties

    clearError: () => void

    Clear the error state

    error: string | null

    Last save error

    fileId: string | null

    Current file ID (null if not yet saved)

    hasUnsavedChanges: boolean

    Whether there are unsaved changes

    isSaving: boolean

    Whether a save is in progress

    markUnsaved: () => void

    Mark that changes need saving

    save: (questions?: Question[]) => Promise<void>

    Manually trigger a save. If questions not provided, uses questionsRef.