Function retryFetch

Recursively retry a fetch request

  • Parameters

    • url: string

      The URL to fetch from

    • options: RequestInit = {}

      Options for the fetch request

    • retryCount: number = 2

      Number of times to retry

    Returns Promise<Response>