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

    Interface UsePollPersistenceResult

    Return type for the usePollPersistence hook.

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

    Properties

    clearError: () => void

    Clear error

    error: string | null

    Last error

    fileId: string | null

    Current file ID

    hasUnsavedChanges: boolean

    Whether there are unsaved changes

    isSaving: boolean

    Whether saving is in progress

    markUnsaved: () => void

    Mark as needing save

    save: (polls?: Poll[]) => Promise<void>

    Manually trigger save