@karmaniverous/cached-axios
    Preparing search index...

    Function withQuery

    • Execute a GET-like call with a stable cache id and tag registration.

      • Merges any object-valued base.cache into the helper's cache config.
      • Registers the cache id under the provided tags for future invalidation.
      • Leaves response shape intact; caller validates payload type.

      Type Parameters

      • T

        Expected response data type.

      Parameters

      • call: (opts: AxiosRequestConfig) => Promise<AxiosResponse<unknown, any>>

        Function that performs the request (e.g., cachedAxios.request).

      • id: Id

        Stable cache id to use for this resource.

      • tags: Tag[]

        Tags to associate with id for future invalidation.

      • Optionalbase: AxiosRequestConfig<any>

        Optional Axios config; shallow-merged into the final request.

      Returns Promise<AxiosResponse<T, any>>

      The AxiosResponse with data typed as T.