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

    Interface SCFetchOptions

    Options supported by all data-fetching hooks.

    interface SCFetchOptions {
        enabled?: boolean;
        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.

    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.