soundcloud-api-ts-next
    Preparing search index...

    Interface UseTrackSearchOptions

    Options for useTrackSearch.

    interface UseTrackSearchOptions {
        enabled?: boolean;
        limit?: number;
        refreshInterval?: number;
        retry?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    enabled?: boolean

    Set to false to skip the request entirely. Useful for conditional fetching (e.g. when an ID is not yet known). Defaults to true.

    limit?: number

    Maximum number of results to return.

    refreshInterval?: number

    Re-fetch on this interval in milliseconds. The interval is cleared on unmount or when deps change.

    retry?: number

    Number of times to retry on error, with exponential backoff (100ms base). Defaults to 0 (no retries). AbortError is never retried.