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

    Interface UseAssignmentPersistenceResult

    Return type for the useAssignmentPersistence hook.

    Provides save state tracking, manual save trigger, and error management for assignment persistence operations.

    interface UseAssignmentPersistenceResult {
        clearError: () => void;
        error: string | null;
        fileId: string | null;
        hasUnsavedChanges: boolean;
        isSaving: boolean;
        lastSaved: Date | null;
        markUnsaved: () => void;
        save: () => Promise<string | null>;
    }
    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

    lastSaved: Date | null

    Last successful save timestamp

    markUnsaved: () => void

    Mark that changes need saving

    save: () => Promise<string | null>

    Manually trigger a save, returns file ID