A specialized DataFetcher that prevents caching of HTTP requests.

This class extends the base DataFetcher and overrides the fetch method to add no-cache headers and set the cache option to "no-cache". This ensures that all requests made using this fetcher will not be cached.

We use this to make sure that admin users always see the latest data when they are making changes to the system.

Hierarchy

  • default
    • default

Constructors

  • Parameters

    • Optionalconfig: DataFetcherConfig

    Returns default

Properties

authKey: string

Methods

  • Returns void

  • Parameters

    • url: string
    • __namedParameters: RequestInit = {}

    Returns Promise<Response>

  • Parameters

    • url: string

    Returns Promise<unknown>

  • Parameters

    • searchDescriptionUrl: string

    Returns Promise<unknown>

  • Returns AuthCredentials

  • Parameters

    • status: number

    Returns boolean

  • Parameters

    • Optionalheaders: any

    Returns any

  • Parameters

    • Optionalcredentials: AuthCredentials

    Returns void