@@ -3,7 +3,7 @@ import * as Result from "@effect-rx/rx/Result"
33import { type InvalidateOptions , type InvalidateQueryFilters , useQueryClient } from "@tanstack/vue-query"
44import { type Cause , Effect , type Exit , Option } from "effect-app"
55import type { RequestHandler , RequestHandlerWithInput , TaggedRequestClassAny } from "effect-app/client/clientFor"
6- import { identity , tuple } from "effect-app/Function"
6+ import { tuple } from "effect-app/Function"
77import { computed , type ComputedRef , type Ref , shallowRef } from "vue"
88import { makeQueryKey } from "./lib.js"
99
@@ -193,8 +193,7 @@ export const makeMutation = () => {
193193 . pipe ( Effect . withSpan ( "client.query.invalidation" , { captureStackTrace : false } ) )
194194 } )
195195
196- type MH = NonNullable < NonNullable < typeof options > [ "mapHandler" ] >
197- const mapHandler = options ?. mapHandler ?? identity as MH
196+ const mapHandler = options ?. mapHandler ?? ( ( _ ) => _ )
198197
199198 const handle = ( self : Effect < A , E , R > , i : I | void = void 0 ) => ( mapHandler (
200199 Effect . tapBoth ( self , { onFailure : ( ) => invalidateCache , onSuccess : ( ) => invalidateCache } ) ,
0 commit comments