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

    Interface UseNotePersistenceOptions

    Options for the useNotePersistence hook.

    interface UseNotePersistenceOptions {
        autoSaveInterval?: number;
        client: unknown;
        content: JSONContent;
        enabled?: boolean;
        fileId?: string;
        fileLocation?: string;
        onError?: (error: Error) => void;
        onSaved?: (fileId: string) => void;
        title: string;
        userId: string;
        userName?: string;
    }
    Index

    Properties

    autoSaveInterval?: number

    Auto-save interval in milliseconds (default: 3000)

    client: unknown

    Hiyve client instance

    content: JSONContent

    Current content as JSON

    enabled?: boolean

    Whether persistence is enabled

    fileId?: string

    Existing file ID to update

    fileLocation?: string

    File storage location (default: '/Notes')

    onError?: (error: Error) => void

    Callback on save error

    onSaved?: (fileId: string) => void

    Callback after successful save

    title: string

    Note title

    userId: string

    Current user ID

    userName?: string

    Current user display name