Function useDownloadURL

  • Returns the download URL of a Google Cloud Storage object

    Parameters

    • reference: undefined | null | StorageReference

      Reference to a Google Cloud Storage object

    Returns UseDownloadURLResult

    Download URL, loading state, and error

    • value: Download URL; undefined if download URL is currently being fetched, or an error occurred
    • loading: true while fetching the download URL; false if the download URL was fetched successfully or an error occurred
    • error: undefined if no error occurred