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

    Interface UseNotePersistenceResult

    Return type for the useNotePersistence hook.

    interface UseNotePersistenceResult {
        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