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

    Function withMutation

    • Execute a write-like call with tag-based invalidation.

      • Builds an update map that tells ACI to delete affected ids.
      • Clears tag buckets in the in-memory index after the call.
      • 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).

      • invalidate: Tag[]

        Tags whose registered ids should be invalidated.

      • Optionalbase: AxiosRequestConfig<any>

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

      Returns Promise<AxiosResponse<T, any>>

      The AxiosResponse with data typed as T.